aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-21 00:17:22 -0500
committerJack Nagel2014-04-21 00:17:33 -0500
commitc0cc49d31d75499b610783bc6042dc30674cbee8 (patch)
tree5907dab3da256f95714657b37c38aa2ec77ec381 /Library
parentb936a1747c7f7ede17417e05a4f69fe9019dc79b (diff)
downloadhomebrew-c0cc49d31d75499b610783bc6042dc30674cbee8.tar.bz2
Make obvious that this is a nested conditional
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 5e1ef96b3..a774fa9fd 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -85,11 +85,15 @@ class Cmd
else
args = refurbished_args
end
- if tool != 'ld'
- args << "--sysroot=#{sdkroot}"
- else
- args << "-syslibroot" << sdkroot
- end if nclt?
+
+ if nclt?
+ if tool != 'ld'
+ args << "--sysroot=#{sdkroot}"
+ else
+ args << "-syslibroot" << sdkroot
+ end
+ end
+
allflags = case mode
when :ccld
cflags + args + cppflags + ldflags