Skip to content

Commit b0de09e

Browse files
rmacnak-googleCommit Queue
authored andcommitted
[build] Make rpath a bit more robust for Mac sanitizers.
Bug: #61713 Bug: #61831 Change-Id: I76ca4ae244dda7d97d98adfb802814a649edc309 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/457882 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Alexander Aprelev <[email protected]>
1 parent 0cf5b99 commit b0de09e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/config/compiler/BUILD.gn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ config("compiler") {
146146
ldflags += [
147147
"-rpath",
148148
"buildtools/mac-$host_cpu/clang/lib/clang/22/lib/darwin",
149+
150+
# Back from xcodebuild/ReleaseTSAN/dart
151+
"-rpath",
152+
"@loader_path/../../buildtools/mac-$host_cpu/clang/lib/clang/22/lib/darwin",
153+
154+
# Back from xcodebuild/ReleaseTSAN/dart-sdk/bin/dart
155+
"-rpath",
156+
"@loader_path/../../../../buildtools/mac-$host_cpu/clang/lib/clang/22/lib/darwin",
149157
]
150158
}
151159

0 commit comments

Comments
 (0)