mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This patch adds a new flag sanitize-stable-abi to support linking against the Sanitizers stable ABI added recently in compiler-rt. The patch also passes extra options for the ASan pass when using this flag to outline instrumentation code and remove version check. rdar://112915278
7 lines
228 B
Swift
7 lines
228 B
Swift
// REQUIRES: asan_runtime
|
|
// REQUIRES: platform=Darwin
|
|
// RUN: %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-stable-abi %s 2>&1 | %FileCheck %s
|
|
|
|
// Link against stable ABI
|
|
// CHECK: libclang_rt.asan_abi{{.*}}.a
|