rake-convert 0.0.3.1 → 0.0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rake/convert.rb +7 -7
  2. metadata +2 -2
@@ -55,7 +55,7 @@ cat > $FILE.c <<EOF
55
55
  EOF
56
56
 
57
57
  echo -n "Checking for #{header}... "
58
- if [[ "`($CC $CFLAGS -pipe -o $FILE -c $FILE.c) 2>&1`" == "" ]]; then
58
+ if [[ "`($CC $FLAGS -pipe -o $FILE -c $FILE.c) 2>&1 | grep -v warning`" == "" ]]; then
59
59
  DEFS="$DEFS\\n#define #{"HAVE_#{header.tr_cpp}"} 1"
60
60
 
61
61
  echo yes
@@ -85,7 +85,7 @@ cat > $FILE.c <<EOF
85
85
  EOF
86
86
 
87
87
  echo -n "Checking for #{lib}... "
88
- if [[ "`($CC $CFLAGS -pipe -o $FILE $FILE.c -l#{lib} $LIBS) 2>&1`" == "" ]]; then
88
+ if [[ "`($CC $FLAGS -pipe -o $FILE $FILE.c -l#{lib} $LIBS) 2>&1 | grep -v warning`" == "" ]]; then
89
89
  LAST=yes
90
90
 
91
91
  LIBS="$LIBS -l#{lib}"
@@ -117,7 +117,7 @@ cat > $FILE.c <<EOF
117
117
  EOF
118
118
 
119
119
  echo -n "Checking for #{func}()#{" in #{[headers].flatten.join(' ')}" if headers}... "
120
- if [[ "`($CC $CFLAGS -Wall -pipe -o $FILE -c $FILE.c) 2>&1`" == "" ]]; then
120
+ if [[ "`($CC $FLAGS -Wall -pipe -o $FILE -c $FILE.c) 2>&1 | grep -v warning`" == "" ]]; then
121
121
  DEFS="$DEFS\\n#define #{"HAVE_#{func.tr_cpp}"} 1"
122
122
 
123
123
  echo yes
@@ -147,7 +147,7 @@ cat > $FILE.c <<EOF
147
147
  EOF
148
148
 
149
149
  echo -n "Checking for #{macro}#{" in #{[headers].flatten.join(' ')}" if headers}... "
150
- if [[ "`($CC $CFLAGS -pipe -o $FILE -c $FILE.c) 2>&1`" == "" ]]; then
150
+ if [[ "`($CC $FLAGS -pipe -o $FILE -c $FILE.c) 2>&1 | grep -v warning`" == "" ]]; then
151
151
  DEFS="$DEFS\\n#define #{"HAVE_#{macro.tr_cpp}"} 1"
152
152
 
153
153
  echo yes
@@ -176,10 +176,10 @@ cat > $FILE.c <<EOF
176
176
  #{source}
177
177
  EOF
178
178
 
179
- $CC $CFLAGS -o $FILE $FILE.c
179
+ $CC $FLAGS -o $FILE $FILE.c
180
180
 
181
181
  echo -n "Checking size of #{type}#{" in #{[headers].flatten.join(' ')}" if headers}... "
182
- if [[ "`($CC $CFLAGS -pipe -o $FILE $FILE.c) 2>&1`" == "" ]]; then
182
+ if [[ "`($CC $FLAGS -pipe -o $FILE $FILE.c) 2>&1 | grep -v warning`" == "" ]]; then
183
183
  SIZE=$(exec $FILE)
184
184
  DEFS="$DEFS\\n#define #{"SIZEOF_#{type.tr_cpp}"} $SIZE"
185
185
 
@@ -274,7 +274,7 @@ task :convert, [:makefile, :configure] do |task, args|
274
274
  end
275
275
  end
276
276
 
277
- args.with_defaults(makefile: 'Makefile', configure: 'configure')
277
+ args.with_defaults(:makefile => 'Makefile', :configure => 'configure')
278
278
 
279
279
  if (Rake::Task[:clean] rescue nil) || (Rake::Task[:clobber] rescue nil)
280
280
  if defined?(CLOBBER)
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.0.3.1
9
+ - 2
10
+ version: 0.0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - meh.