[llvm-commits] [llvm-gcc-4.2] r95792 - /llvm-gcc-4.2/trunk/build_gcc
Bob Wilson
bob.wilson at apple.com
Wed Feb 10 11:25:45 PST 2010
Author: bwilson
Date: Wed Feb 10 13:25:45 2010
New Revision: 95792
URL: http://llvm.org/viewvc/llvm-project?rev=95792&view=rev
Log:
Check for special llvmgcc42_Embedded project name when using ARM_SDK.
Radar 7633495.
Modified:
llvm-gcc-4.2/trunk/build_gcc
Modified: llvm-gcc-4.2/trunk/build_gcc
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/build_gcc?rev=95792&r1=95791&r2=95792&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/build_gcc (original)
+++ llvm-gcc-4.2/trunk/build_gcc Wed Feb 10 13:25:45 2010
@@ -142,12 +142,6 @@
ARM_SYSROOT=$ARM_PLATFORM/Developer/SDKs/$ARM_IPHONE_SDK
ARM_TOOLROOT=$ARM_PLATFORM/Developer
- # If it's being built for iPhoneOS, assume the llvmCore bits are under
- # iPhoneOS platform directory.
- if [ "x$RC_ProjectName" = "xllvmgcc42_Embedded" ]; then
- LLVMCORE_PATH="${ARM_PLATFORM}${LLVMCORE_PATH}"
- DEST_ROOT="${ARM_PLATFORM}${DEST_ROOT}"
- fi
else
# Use bootstrap SDK if it is available.
@@ -156,11 +150,19 @@
else
ARM_SYSROOT=/
fi
+ ARM_PLATFORM=/
ARM_TOOLROOT=/
fi
ARM_CONFIGFLAGS="$ARM_CONFIGFLAGS --with-build-sysroot=\"$ARM_SYSROOT\""
+# If it's being built for iPhoneOS, assume the llvmCore bits are under
+# iPhoneOS platform directory.
+if [ "x$RC_ProjectName" = "xllvmgcc42_Embedded" ]; then
+ LLVMCORE_PATH="${ARM_PLATFORM}${LLVMCORE_PATH}"
+ DEST_ROOT="${ARM_PLATFORM}${DEST_ROOT}"
+fi
+
# If building an ARM target, check that the required directories exist
# and query the libSystem arm slices to determine which multilibs we should
# build.
More information about the llvm-commits
mailing list