Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kyte <alexmkyte@gmail.com>2018-05-22 05:02:09 +0300
committerAlexander Kyte <alkyte@microsoft.com>2018-06-25 22:09:04 +0300
commit269821eaec1b137d9815ecaa7c02a4bee2945139 (patch)
tree625ce807988697dceb0bef7dc1da8d1d0e24c863 /llvm/Makefile.am
parent27eb41354e39b7907fe9f4221a02a76a5df7bbc8 (diff)
[runtime] Enable assertions with in-tree llvm with configure option
Diffstat (limited to 'llvm/Makefile.am')
-rw-r--r--llvm/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/Makefile.am b/llvm/Makefile.am
index b5806f65e73..8537ce27b90 100644
--- a/llvm/Makefile.am
+++ b/llvm/Makefile.am
@@ -43,12 +43,17 @@ all-local: configure-llvm build-llvm install-llvm
$(LLVM_PATH)/CMakeLists.txt: | reset-llvm
+if INTERNAL_LLVM_ASSERTS
+LLVM_ASSERTIONS=-DLLVM_ENABLE_ASSERTIONS=On
+endif # INTERNAL_LLVM_ASSERTS
+
.PHONY: configure-llvm
configure-llvm: $(LLVM_PATH)/CMakeLists.txt | $(LLVM_BUILD)
cd $(LLVM_BUILD) && cmake \
$(if $(NINJA),-G Ninja) \
-DCMAKE_INSTALL_PREFIX="$(LLVM_PREFIX)" \
-DCMAKE_BUILD_TYPE=Release \
+ $(LLVM_ASSERTIONS) \
-DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64" \
$(LLVM_CMAKE_ARGS) \
$(dir $<)