File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,6 @@ config("compiler") {
112112 if (is_asan ) {
113113 cflags += [ " -fsanitize=address" ]
114114 ldflags += [ " -fsanitize=address" ]
115- if (is_mac ) {
116- ldflags += [
117- " -rpath" ,
118- " buildtools/mac-$host_cpu /clang/lib/clang/21/lib/darwin" ,
119- ]
120- }
121115 }
122116 if (is_hwasan && is_android && current_cpu == " arm64" ) {
123117 cflags += [ " -fsanitize=hwaddress" ]
@@ -148,6 +142,13 @@ config("compiler") {
148142 ]
149143 }
150144
145+ if (is_mac && (is_asan || is_lsan || is_tsan || is_ubsan )) {
146+ ldflags += [
147+ " -rpath" ,
148+ " buildtools/mac-$host_cpu /clang/lib/clang/21/lib/darwin" ,
149+ ]
150+ }
151+
151152 if (use_custom_libcxx ) {
152153 cflags_cc += [ " -nostdinc++" ]
153154 include_dirs = [
You can’t perform that action at this time.
0 commit comments