We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1a8fff + 0cd0a36 commit ac56f03Copy full SHA for ac56f03
unittests/runtime/CMakeLists.txt
@@ -1,5 +1,10 @@
1
+# We can't currently build the runtime tests under ASAN
2
+# The problem is that we want to use the just-build compiler (just like the
3
+# runtime) but ASAN will complain if we link against libgtest and LLVMSupport
4
+# libraries because they were compiled with the host compiler.
5
if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
- ("${SWIFT_HOST_VARIANT_ARCH}" STREQUAL "${SWIFT_PRIMARY_VARIANT_ARCH}"))
6
+ ("${SWIFT_HOST_VARIANT_ARCH}" STREQUAL "${SWIFT_PRIMARY_VARIANT_ARCH}") AND
7
+ (NOT (LLVM_USE_SANITIZER STREQUAL "Address")))
8
9
if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
10
if(NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER)
0 commit comments