[cfe-commits] r166560 - /cfe/trunk/runtime/compiler-rt/Makefile
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Wed Oct 24 07:05:29 PDT 2012
Author: eugenis
Date: Wed Oct 24 09:05:29 2012
New Revision: 166560
URL: http://llvm.org/viewvc/llvm-project?rev=166560&view=rev
Log:
Pass LLVM_ANDROID_TOOLCHAIN_DIR if set.
This lets one build ASan runtime for ARM/Android by running
make -C tools/clang/runtime/ \
LLVM_ANDROID_TOOLCHAIN_DIR=/path/to/ndk/toolchain
in an existing build tree.
Modified:
cfe/trunk/runtime/compiler-rt/Makefile
Modified: cfe/trunk/runtime/compiler-rt/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/runtime/compiler-rt/Makefile?rev=166560&r1=166559&r2=166560&view=diff
==============================================================================
--- cfe/trunk/runtime/compiler-rt/Makefile (original)
+++ cfe/trunk/runtime/compiler-rt/Makefile Wed Oct 24 09:05:29 2012
@@ -112,6 +112,9 @@
ifeq ($(call TryCompile,$(ToolDir)/clang,$(test_source),-m32),0)
RuntimeLibrary.linux.Configs += asan-i386.a
endif
+ifneq ($(LLVM_ANDROID_TOOLCHAIN_DIR),)
+RuntimeLibrary.linux.Configs += asan-arm-android.so
+endif
endif
endif
@@ -130,6 +133,7 @@
ProjSrcRoot=$(COMPILERRT_SRC_ROOT) \
ProjObjRoot=$(PROJ_OBJ_DIR) \
CC="$(ToolDir)/clang" \
+ LLVM_ANDROID_TOOLCHAIN_DIR="$(LLVM_ANDROID_TOOLCHAIN_DIR)" \
$(RuntimeDirs:%=clang_%)
.PHONY: BuildRuntimeLibraries
CleanRuntimeLibraries:
More information about the cfe-commits
mailing list