From: Daniel Dunbar Date: Wed, 28 Apr 2010 23:36:26 +0000 (+0000) Subject: build: Add CLANG_NO_RUNTIME build variable, which disables building clang X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e45cbcba1807c01ce2fc9a768ebfffafcffa22d;p=clang build: Add CLANG_NO_RUNTIME build variable, which disables building clang runtime library stuff, even if compiler-rt is available. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102560 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Runtime/Makefile b/lib/Runtime/Makefile index 9a3c34719c..580215acb6 100644 --- a/lib/Runtime/Makefile +++ b/lib/Runtime/Makefile @@ -26,6 +26,7 @@ PROJ_resources_lib := $(PROJ_resources)/lib # Expect compiler-rt to be in llvm/projects/compiler-rt COMPILERRT_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/compiler-rt +ifndef CLANG_NO_RUNTIME ifeq ($(shell test -d $(COMPILERRT_SRC_ROOT) && echo OK),OK) # Select the compiler-rt configuration to use, and install directory. @@ -97,3 +98,4 @@ install-local:: $(RuntimeDirs:%=RuntimeLibraryInstall.%) clean-local:: CleanRuntimeLibraries endif +endif