From 8b086fe575ea92a87ecfde464c2a3253df4b6d34 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 21 Apr 2014 00:17:22 -0500 Subject: [PATCH] Make obvious that this is a nested conditional --- Library/ENV/4.3/cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 5e1ef96b3d..a774fa9fda 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