[PATCH] D86379: [sanitizer] When building tests on Darwin, always pass -arch and other common flags
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 15:19:34 PDT 2020
kubamracek created this revision.
kubamracek added reviewers: kcc, eugenis, delcypher, yln.
kubamracek added a project: Sanitizers.
Herald added subscribers: Sanitizers, mgorny.
kubamracek requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86379
Files:
compiler-rt/cmake/config-ix.cmake
Index: compiler-rt/cmake/config-ix.cmake
===================================================================
--- compiler-rt/cmake/config-ix.cmake
+++ compiler-rt/cmake/config-ix.cmake
@@ -218,7 +218,7 @@
# specific architecture. When cross-compiling, this is controled via
# COMPILER_RT_TEST_COMPILER and COMPILER_RT_TEST_COMPILER_CFLAGS.
macro(get_test_cc_for_arch arch cc_out cflags_out)
- if(ANDROID OR ${arch} MATCHES "arm|aarch64")
+ if(NOT APPLE AND (ANDROID OR ${arch} MATCHES "arm|aarch64"))
# This is only true if we are cross-compiling.
# Build all tests with host compiler and use host tools.
set(${cc_out} ${COMPILER_RT_TEST_COMPILER})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86379.287123.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200821/c5f639b6/attachment.bin>
More information about the llvm-commits
mailing list