Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Disable using -fsanitize=leak from the Clang Driver. #249

Merged

Conversation

danliew-apple
Copy link
Contributor

LeakSanitizer (LSan) is not yet mature for Darwin so until this
changes we should avoid supporting it in Swift Clang and AppleClang.

rdar://problem/45841334

LeakSanitizer (LSan) is not yet mature for Darwin so until this
changes we should avoid supporting it in Swift Clang and AppleClang.

rdar://problem/45841334
Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch is used to build for Linux too. I think we even run Leak Sanitizer on Swift stuff there.

@jrose-apple
Copy link
Contributor

In general, upstream-with-swift should not have anything in it that isn't specific to Swift. Other Apple-specific stuff should stay Apple-internal at this time.

@danliew-apple
Copy link
Contributor Author

@jrose-apple This change is only for Darwin. Linux should remain unchanged by this PR.

@danliew-apple
Copy link
Contributor Author

@jrose-apple

In general, upstream-with-swift should not have anything in it that isn't specific to Swift. Other Apple-specific stuff should stay Apple-internal at this time.

This patch was originally intended to be internal but @hyp requested it be moved here.

@jrose-apple jrose-apple dismissed their stale review December 19, 2018 22:56

Whoops! I misread the file where the change went to. Okay, I'm still not sure about the Apple-internal bit but the change itself seems reasonable.

@delcypher
Copy link
Contributor

@jrose-apple The commits shouldn't mention Apple-internal anymore. So I'll land this.

@delcypher delcypher merged commit e3cc2fe into apple:upstream-with-swift Dec 20, 2018
danliew-apple added a commit to danliew-apple/swift-compiler-rt that referenced this pull request Dec 20, 2018
to the Clang driver in apple/swift-clang#249.

This is necessary because the standalone LSan tests will be executed
and failed without this patch when using the newer Clang.

rdar://problem/45841334
danliew-apple added a commit to danliew-apple/swift-compiler-rt that referenced this pull request Dec 20, 2018
to the Clang driver in apple/swift-clang#249.

This is necessary because the standalone LSan tests will be executed
and will fail without this patch when using the newer Clang.

rdar://problem/45841334
delcypher pushed a commit to apple/swift-compiler-rt that referenced this pull request Dec 20, 2018
to the Clang driver in apple/swift-clang#249.

This is necessary because the standalone LSan tests will be executed
and will fail without this patch when using the newer Clang.

rdar://problem/45841334
danliew-apple added a commit to danliew-apple/swift-compiler-rt that referenced this pull request Dec 31, 2018
to the Clang driver in apple/swift-clang#249.

This is necessary because the standalone LSan tests will be executed
and will fail without this patch when using the newer Clang.

rdar://problem/45841334
(cherry picked from commit 56b6455)
danliew-apple added a commit to apple/swift-compiler-rt that referenced this pull request Jan 2, 2019
to the Clang driver in apple/swift-clang#249.

This is necessary because the standalone LSan tests will be executed
and will fail without this patch when using the newer Clang.

rdar://problem/45841334
(cherry picked from commit 56b6455)
hyp pushed a commit to swiftlang/llvm-project that referenced this pull request Oct 22, 2019
to the Clang driver in apple/swift-clang#249.

This is necessary because the standalone LSan tests will be executed
and will fail without this patch when using the newer Clang.

rdar://problem/45841334

apple-llvm-split-commit: 56b645581726e29691a47fec4e2adbb18e7b09e4
apple-llvm-split-dir: compiler-rt/
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants