rust/src/test
bors 0ee56f686d Auto merge of #41352 - kennytm:macos-sanitizers, r=alexcrichton
Support AddressSanitizer and ThreadSanitizer on x86_64-apple-darwin

[ASan](https://clang.llvm.org/docs/AddressSanitizer.html#supported-platforms) and [TSan](https://clang.llvm.org/docs/ThreadSanitizer.html#supported-platforms) are supported on macOS, and this commit enables their support.

The sanitizers are always built as `*.dylib` on Apple platforms, so they cannot be statically linked into the corresponding `rustc_?san.rlib`. The dylibs are directly copied to `lib/rustlib/x86_64-apple-darwin/lib/` instead.

Note, although Xcode also ships with their own copies of ASan/TSan dylibs, we cannot use them due to version mismatch.

----

~~There is a caveat: the sanitizer libraries are linked as `@rpath/` (due to https://reviews.llvm.org/D6018), so the user needs to additionally pass `-C rpath`:~~

**Edit:** Passing rpath is now automatic.
2017-04-26 12:34:45 +00:00
..
codegen remove cleanup branches to the resume block 2017-04-22 21:00:50 +03:00
codegen-units translate drop glue using MIR 2017-03-18 02:53:08 +02:00
compile-fail Fix object safety violations in the test 2017-04-25 22:38:39 +03:00
compile-fail-fulldeps Don't panic if an attribute macro fails to resolve at crate root 2017-04-20 16:13:13 -07:00
debuginfo update gdbr tests 2017-03-09 22:12:36 +01:00
incremental rustc: use monomorphic const_eval for cross-crate enum discriminants. 2017-04-16 01:31:37 +03:00
mir-opt borrowck::mir::dataflow: ignore unwind edges of empty drops 2017-04-08 22:46:50 +03:00
parse-fail Fix issue with single question mark or paren 2017-04-21 21:32:44 +03:00
pretty Update pretty test for derive attributes 2017-02-05 12:22:29 +10:30
run-fail Warn when a #[should_panic] test has an unexpected message 2016-11-18 21:01:19 +10:30
run-fail-fulldeps Merge ExpnId and SyntaxContext. 2017-03-29 00:41:10 +00:00
run-make Do not check if libclang_rt.?san_*_dynamic.dylib is an unstable crate. 2017-04-25 18:34:21 +08:00
run-pass Auto merge of #40123 - TimNN:llvm40, r=alexcrichton 2017-04-24 22:18:16 +00:00
run-pass-fulldeps Merge ExpnId and SyntaxContext. 2017-03-29 00:41:10 +00:00
run-pass-valgrind Removes FIXMEs related to #22405 2017-01-31 21:27:13 -05:00
rustdoc Re-enable hoedown by default 2017-04-22 13:25:14 +02:00
ui Auto merge of #39999 - bitshifter:struct_align, r=eddyb 2017-04-22 11:50:40 +00:00
ui-fulldeps/custom-derive Separate "ui-fulldeps" tests from "ui" tests 2017-03-04 21:38:26 +03:00
COMPILER_TESTS.md Move COMPILER_TESTS.md out of the root directory 2017-02-25 00:13:00 -06:00