1
Fork 0
This commit is contained in:
Corey Farwell 2020-12-10 00:18:30 -05:00
parent 5940c19315
commit 74207767c0

View file

@ -819,8 +819,7 @@ fn link_sanitizer_runtime(sess: &Session, linker: &mut dyn Linker, name: &str) {
.unwrap_or_default();
match sess.opts.target_triple.triple() {
"aarch64-apple-darwin"
| "x86_64-apple-darwin" => {
"aarch64-apple-darwin" | "x86_64-apple-darwin" => {
// On Apple platforms, the sanitizer is always built as a dylib, and
// LLVM will link to `@rpath/*.dylib`, so we need to specify an
// rpath to the library as well (the rpath should be absolute, see