From: Petr Hosek Date: Fri, 15 Jul 2022 08:10:52 +0000 (+0000) Subject: [compiler-rt][CMake] Set unwinder for MSan unittests X-Git-Tag: upstream/15.0.7~1599 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cae5462a2caa4a14516d3935d2ca3a1f1d0522c9;p=platform%2Fupstream%2Fllvm.git [compiler-rt][CMake] Set unwinder for MSan unittests This addresses an issue introduced by 6699f554880087106a02be1675395bf2cc6f46c8. --- diff --git a/compiler-rt/lib/msan/tests/CMakeLists.txt b/compiler-rt/lib/msan/tests/CMakeLists.txt index 3ed888b..efd370b 100644 --- a/compiler-rt/lib/msan/tests/CMakeLists.txt +++ b/compiler-rt/lib/msan/tests/CMakeLists.txt @@ -54,6 +54,7 @@ set(MSAN_UNITTEST_INSTRUMENTED_CFLAGS set(MSAN_UNITTEST_LINK_FLAGS -nostdlib++ ${COMPILER_RT_UNITTEST_LINK_FLAGS} + ${COMPILER_RT_UNWINDER_LINK_LIBS} -fsanitize=memory # Don't need -stdlib=libc++ because we explicitly list libc++.a in the linker # inputs.