Make this logic less confusing
This commit is contained in:
parent
3ff3e74438
commit
467419c1f3
@ -17,10 +17,10 @@ def superbin
|
|||||||
end
|
end
|
||||||
|
|
||||||
def superenv?
|
def superenv?
|
||||||
not (MacSystem.xcode43_without_clt? and
|
return false if MacSystem.xcode43_without_clt? && MacOS.sdk_path.nil?
|
||||||
MacOS.sdk_path.nil?) and # because superenv will fail to find stuff
|
return false unless superbin && superbin.directory?
|
||||||
superbin and superbin.directory? and
|
return false if ARGV.include? "--env=std"
|
||||||
not ARGV.include? "--env=std"
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
# Note that this block is guarded with `if superenv?`
|
# Note that this block is guarded with `if superenv?`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user