mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This only enables the swift compiler (not its output) to be used with leaks sanitizer on linux. Some important notes: On Linux, right now we are not completely leak clean. I was only able to get a -Onone build of the stdlib without triggering lsan (I was unable to run the optimizer and the tests successfully). Additionally even at -Onone, I had to suppress some leaks in the driver. The point of this though is to prevent any further -Onone leaks from being committed to the tree since -Onone leaks that are not bounded (unlike the driver bugs) could cause SourceKit to leak memory. Since SourceKit is a long running process... such a type of leak would be bad. rdar://32876901