[test-suite] r287151 - cmake: Do not pass -Wl, no-pie on aarch64 builds
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 13:12:29 PST 2016
Author: matze
Date: Wed Nov 16 15:12:29 2016
New Revision: 287151
URL: http://llvm.org/viewvc/llvm-project?rev=287151&view=rev
Log:
cmake: Do not pass -Wl,no-pie on aarch64 builds
This avoids "ld: warning: -no_pie ignored for arm64".
Modified:
test-suite/trunk/CMakeLists.txt
Modified: test-suite/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/CMakeLists.txt?rev=287151&r1=287150&r2=287151&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Wed Nov 16 15:12:29 2016
@@ -40,7 +40,7 @@ set(TEST_SUITE_DISABLE_PIE "True" CACHE
"Disable position independent executables and ASLR")
mark_as_advanced(TEST_SUITE_DISABLE_PIE)
if(TEST_SUITE_DISABLE_PIE)
- if(APPLE)
+ if(APPLE AND NOT ARCH STREQUAL "AArch64")
list(APPEND LDFLAGS -Wl,-no_pie)
endif()
# TODO: Add apropriate flags to disable PIE/ASLR on linux, bsd, ...
More information about the llvm-commits
mailing list