We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87bc6c0 commit 0fcf93fCopy full SHA for 0fcf93f
Sources/Build/Sanitizers.swift
@@ -15,12 +15,14 @@ import Utility
15
public enum Sanitizer: String {
16
case address
17
case thread
18
+ case undefined
19
20
/// Return an established short name for a sanitizer, e.g. "asan".
21
public var shortName: String {
22
switch self {
23
case .address: return "asan"
24
case .thread: return "tsan"
25
+ case .undefined: return "ubsan"
26
}
27
28
@@ -61,5 +63,6 @@ extension Sanitizer: StringEnumArgument {
61
63
public static let completion: ShellCompletion = .values([
62
64
(address.rawValue, "enable Address sanitizer"),
65
(thread.rawValue, "enable Thread sanitizer"),
66
+ (undefined.rawValue, "enable Undefined Behavior sanitizer")
67
])
68
0 commit comments