You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Sanitizer] Add new flag -sanitize-stable-abi flag to link against the
new sanitiers stable ABI in compiler-rt.
Compiler-rt recently introduced a stable ABI for sanitizers. This patch
adds a flag to pass this flag to swift-frontend during compilation and
clang at link time to link against the new stable ABI.
rdar://118997873
Copy file name to clipboardExpand all lines: Sources/SwiftOptions/Options.swift
+2
Original file line number
Diff line number
Diff line change
@@ -696,6 +696,7 @@ extension Option {
696
696
publicstaticletsanitizeAddressUseOdrIndicator:Option=Option("-sanitize-address-use-odr-indicator",.flag, attributes:[.helpHidden,.frontend,.noInteractive], helpText:"When using AddressSanitizer enable ODR indicator globals to avoid false ODR violation reports in partially sanitized programs at the cost of an increase in binary size")
697
697
publicstaticletsanitizeCoverageEQ:Option=Option("-sanitize-coverage=",.commaJoined, attributes:[.frontend,.noInteractive], metaVar:"<type>", helpText:"Specify the type of coverage instrumentation for Sanitizers and additional options separated by commas")
698
698
publicstaticletsanitizeRecoverEQ:Option=Option("-sanitize-recover=",.commaJoined, attributes:[.frontend,.noInteractive], metaVar:"<check>", helpText:"Specify which sanitizer runtime checks (see -sanitize=) will generate instrumentation that allows error recovery. Listed checks should be comma separated. Default behavior is to not allow error recovery.")
699
+
publicstaticletsanitizeStableAbiEQ:Option=Option("-sanitize-stable-abi",.flag, attributes:[.frontend,.noInteractive], helpText:"ABI instrumentation for sanitizer runtime.")
699
700
publicstaticletsanitizeEQ:Option=Option("-sanitize=",.commaJoined, attributes:[.frontend,.noInteractive], metaVar:"<check>", helpText:"Turn on runtime checks for erroneous behavior.")
700
701
publicstaticletsaveOptimizationRecordPasses:Option=Option("-save-optimization-record-passes",.separate, attributes:[.frontend], metaVar:"<regex>", helpText:"Only include passes which match a specified regular expression in the generated optimization record (by default, include all passes)")
701
702
publicstaticletsaveOptimizationRecordPath:Option=Option("-save-optimization-record-path",.separate, attributes:[.frontend,.argumentIsPath], helpText:"Specify the file name of any generated optimization record")
0 commit comments