Don't build runtime libraries in an Apple style build.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 27 Aug 2009 23:43:28 +0000 (23:43 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 27 Aug 2009 23:43:28 +0000 (23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80303 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/Makefile
utils/buildit/build_llvm

index a1b89af3780f42602f2e797fc74a34351fa3f447..6e259678b287c2575d7ef1adc16dea660c1323c5 100644 (file)
@@ -7,6 +7,8 @@
 # 
 ##===----------------------------------------------------------------------===##
 
+ifndef NO_RUNTIME_LIBS
+
 LEVEL = ..
 include $(LEVEL)/Makefile.config
 
@@ -22,3 +24,4 @@ include $(LEVEL)/Makefile.common
 
 install::
 
+endif
index 9b2d8d3a0c4ff2652b6523551edfcad7d67f6951..e432e5b7254391310bc8e0a5329e6dc01e1b46d7 100755 (executable)
@@ -148,6 +148,7 @@ if [ "x$MAJ_VER" != "x4" -o "x$MIN_VER" != "x0" ]; then
 fi
 
 make $JOBS_FLAG $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
+    NO_RUNTIME_LIBS=1 \
     LLVM_SUBMIT_VERSION=$LLVM_SUBMIT_VERSION \
     LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \
     CXXFLAGS="-DLLVM_VERSION_INFO='\" Apple Build #$LLVM_VERSION\"'" \
@@ -171,6 +172,7 @@ cd $DIR/obj-llvm || exit 1
 
 # Install the tree into the destination directory.
 make $LOCAL_MAKEFLAGS $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
+    NO_RUNTIME_LIBS=1 \
     LLVM_SUBMIT_VERSION=$LLVM_SUBMIT_VERSION \
     LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \
     OPTIMIZE_OPTION='-O3' VERBOSE=1 install