diff options
| author | Jack Nagel | 2014-04-21 00:17:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-21 00:17:33 -0500 |
| commit | aef03cd022c5b1324a60513f58232323cb5481a6 (patch) | |
| tree | 137f7faf9345973a4ac0b453c2a4b4077b0602dc /Library | |
| parent | c0cc49d31d75499b610783bc6042dc30674cbee8 (diff) | |
| download | homebrew-aef03cd022c5b1324a60513f58232323cb5481a6.tar.bz2 | |
Make obvious that what we care about is the presence of sdkroot
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index a774fa9fd..841376f1d 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -86,7 +86,7 @@ class Cmd args = refurbished_args end - if nclt? + if sdkroot if tool != 'ld' args << "--sysroot=#{sdkroot}" else @@ -208,7 +208,7 @@ class Cmd args end def syspath - if nclt? + if sdkroot %W{#{sdkroot}/usr #{sdkroot}/usr/local} else %W{/usr /usr/local} @@ -269,9 +269,6 @@ class Cmd # configure scripts generated with autoconf 2.61 or later export as_nl ENV.key? 'as_nl' end - def nclt? - sdkroot != nil - end def cccfg? flags flags.split('').all?{|c| ENV['HOMEBREW_CCCFG'].include? c } if ENV['HOMEBREW_CCCFG'] end |
