Skip to content

Commit 6fae8b8

Browse files
authored
[rtsan][NFC] Rename RTSAN_LINK_LIBS to RTSAN_DYNAMIC_LIBS (#109991)
Follow on to #109715 This better matches this same variable in asan, ubsan, hwasan, and nsan. Shows the logical coupling, and describes them as "dynamic only" which is their intent.
1 parent 6b109a3 commit 6fae8b8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

compiler-rt/lib/rtsan/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set(RTSAN_CFLAGS
2525
${COMPILER_RT_CXX_CFLAGS}
2626
-DSANITIZER_COMMON_NO_REDEFINE_BUILTINS)
2727
set(RTSAN_LINK_FLAGS ${COMPILER_RT_COMMON_LINK_FLAGS})
28-
set(RTSAN_LINK_LIBS
28+
set(RTSAN_DYNAMIC_LIBS
2929
${COMPILER_RT_UNWINDER_LINK_LIBS}
3030
${SANITIZER_CXX_ABI_LIBRARIES}
3131
${SANITIZER_COMMON_LINK_LIBS})
@@ -61,11 +61,11 @@ set(RTSAN_COMMON_RUNTIME_OBJECT_LIBS
6161
RTSanitizerCommonCoverage
6262
RTSanitizerCommonSymbolizer)
6363

64-
append_list_if(COMPILER_RT_HAS_LIBDL dl RTSAN_LINK_LIBS)
65-
append_list_if(COMPILER_RT_HAS_LIBRT rt RTSAN_LINK_LIBS)
66-
append_list_if(COMPILER_RT_HAS_LIBM m RTSAN_LINK_LIBS)
67-
append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread RTSAN_LINK_LIBS)
68-
append_list_if(COMPILER_RT_HAS_LIBLOG log RTSAN_LINK_LIBS)
64+
append_list_if(COMPILER_RT_HAS_LIBDL dl RTSAN_DYNAMIC_LIBS)
65+
append_list_if(COMPILER_RT_HAS_LIBRT rt RTSAN_DYNAMIC_LIBS)
66+
append_list_if(COMPILER_RT_HAS_LIBM m RTSAN_DYNAMIC_LIBS)
67+
append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread RTSAN_DYNAMIC_LIBS)
68+
append_list_if(COMPILER_RT_HAS_LIBLOG log RTSAN_DYNAMIC_LIBS)
6969

7070
add_compiler_rt_component(rtsan)
7171

@@ -80,7 +80,7 @@ if (APPLE)
8080
OBJECT_LIBS RTRtsan
8181
${RTSAN_COMMON_RUNTIME_OBJECT_LIBS}
8282
LINK_FLAGS ${RTSAN_LINK_FLAGS}
83-
LINK_LIBS ${RTSAN_LINK_LIBS}
83+
LINK_LIBS ${RTSAN_DYNAMIC_LIBS}
8484
PARENT_TARGET rtsan)
8585
else()
8686
add_compiler_rt_runtime(clang_rt.rtsan

0 commit comments

Comments
 (0)