Status Swift 5/Xcode Fuzzing support?

(Thomas Van Lenten) #1

Should the -sanitize=fuzzer work with Xcode 10.2 Beta 2?

$ swift build -c release -Xswiftc -sanitize=fuzzer -Xswiftc -parse-as-library
<unknown>:0: error: unsupported option '-sanitize=fuzzer' for target 'x86_64-apple-macosx10.10'
$ xcodebuild -version
Xcode 10.2
Build version 10P91b
$ swiftc --version
Apple Swift version 5.0 (swiftlang-1001.0.60.3 clang-1001.0.37.8)
Target: x86_64-apple-darwin18.2.0
ABI version: 0.7

(Devin Coughlin) #2

No, -sanitize=fuzzer is not supported and is only available in toolchains from

(Thomas Van Lenten) #3

Is there a reason for that?

As a library maintainer, it would be nice to be able to rely on it being part of the Xcode distros since that's what most developers on Apple platforms will have.

(Thomas Van Lenten) #4

We opened rdar://47920434 also to try and get it included.