diff options
author | Catherine Moore <Catherine_moore@mentor.com> | 2017-05-10 15:34:25 +0000 |
---|---|---|
committer | Catherine Moore <Catherine_moore@mentor.com> | 2017-05-10 15:34:25 +0000 |
commit | 575a392a3cd8a1669f1665ba510c346507044061 (patch) | |
tree | 07f33269c154f8adedcd7a6007fc9c5a69b039a9 /CMakeLists.txt | |
parent | 45eb470c3e9e8f6993a204e247c33d4092237efe (diff) |
[cmake] Disable building enable_execute_stack.c for baremetal targets.
Disable building enable_execute_stack.c for targets that do not have
support for mprotect().
Differential Revision: https://reviews.llvm.org/D33018
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@302680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4247b40dc..b522c340d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,9 @@ mark_as_advanced(COMPILER_RT_BUILD_SANITIZERS) option(COMPILER_RT_BUILD_XRAY "Build xray" ON) mark_as_advanced(COMPILER_RT_BUILD_XRAY) +set(COMPILER_RT_BAREMETAL_BUILD OFF CACHE BOOLEAN + "Build for a bare-metal target.") + if (COMPILER_RT_STANDALONE_BUILD) load_llvm_config() |