mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
remove conftest files
* lib/mkmf.rb (try_constant): remove conftest files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9959405655
commit
b1bdada158
1 changed files with 8 additions and 4 deletions
12
lib/mkmf.rb
12
lib/mkmf.rb
|
@ -631,10 +631,14 @@ SRC
|
|||
int conftest_const = (int)(#{const});
|
||||
int main() {printf("%d\\n", conftest_const); return 0;}
|
||||
}
|
||||
if try_link0(src, opt, &b)
|
||||
xpopen("./conftest") do |f|
|
||||
return Integer(f.gets)
|
||||
end
|
||||
begin
|
||||
if try_link0(src, opt, &b)
|
||||
xpopen("./conftest") do |f|
|
||||
return Integer(f.gets)
|
||||
end
|
||||
end
|
||||
ensure
|
||||
MakeMakefile.rm_f "conftest*"
|
||||
end
|
||||
end
|
||||
nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue