mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
dl/extconf.rb: check for -fno-defer-pop option
* ext/dl/extconf.rb: check for -fno-defer-pop option, since clang 5.1 no longer support -fno-defer-pop option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e0a0edf548
commit
3981d60ba2
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,12 @@
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
if RbConfig::CONFIG['GCC'] == 'yes'
|
if RbConfig::CONFIG['GCC'] == 'yes'
|
||||||
(have_macro("__clang__") ? $LDFLAGS : $CFLAGS) << " -fno-defer-pop"
|
flag = " -fno-defer-pop"
|
||||||
|
if have_macro("__clang__")
|
||||||
|
$LDFLAGS << flag if try_ldflags(flag)
|
||||||
|
else
|
||||||
|
$CFLAGS << flag
|
||||||
|
end
|
||||||
$CFLAGS << " -fno-omit-frame-pointer"
|
$CFLAGS << " -fno-omit-frame-pointer"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue