[compiler-rt] fb89c41 - [CMake] Set the common link flags for memprof tests

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 9 02:03:42 PDT 2022


Author: Petr Hosek
Date: 2022-07-09T09:03:33Z
New Revision: fb89c4126904e4d82f235e492042c16c87cc8e3d

URL: https://github.com/llvm/llvm-project/commit/fb89c4126904e4d82f235e492042c16c87cc8e3d
DIFF: https://github.com/llvm/llvm-project/commit/fb89c4126904e4d82f235e492042c16c87cc8e3d.diff

LOG: [CMake] Set the common link flags for memprof tests

This was missed in ba007f20bb4acf95262f49ab527ce35c4a1f5a19 by mistake.

Added: 
    

Modified: 
    compiler-rt/lib/memprof/tests/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/memprof/tests/CMakeLists.txt b/compiler-rt/lib/memprof/tests/CMakeLists.txt
index 5dc40ae6c3d3..c70a0bef4d96 100644
--- a/compiler-rt/lib/memprof/tests/CMakeLists.txt
+++ b/compiler-rt/lib/memprof/tests/CMakeLists.txt
@@ -33,6 +33,9 @@ include_directories(../../../include)
 set(MEMPROF_UNIT_TEST_HEADERS
   ${MEMPROF_HEADERS})
 
+set(MEMPROF_UNITTEST_LINK_FLAGS
+  ${COMPILER_RT_UNITTEST_LINK_FLAGS})
+
 if(NOT WIN32)
   list(APPEND MEMPROF_UNITTEST_LINK_FLAGS -pthread)
 endif()


        


More information about the llvm-commits mailing list