-
Notifications
You must be signed in to change notification settings - Fork 10.5k
build: honour the libdispatch build type #18900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@gottesmm @aschwaighofer - this might be an expedient way to get that mapped in via the build configuration |
@shahmishal is it possible to run the LSAN job via a PR? |
I just ran the LSAN bot configuration locally with this PR and
It ran without errors. |
@swift-ci Please test |
@gottesmm You can use test with preset for LSAN testing. |
@shahmishal Thanks. |
@shahmishal That doesn't exist for Linux. Only for macOS. |
@gottesmm I will add the support for it in the future. |
I talked with Arnold/Compnerd. The change from Arnold's diff (the one posted in this PR) is needed to fix this. Compnerd is going to add that to the patch. |
When configuring libdispatch as part of the swift build on Linux with SourceKit enabled, we would default to a release build. However, that results in known leaks being reported with LSAN when building with a debug standard library. Pass along the `LIBDISPATCH_BUILD_TYPE` into the CMake build and map that to the CMAKE_BUILD_TYPE for the project.
0f05c7b
to
df208b3
Compare
@swift-ci please test and merge |
@swift-ci please test and merge |
When configuring libdispatch as part of the swift build on Linux with SourceKit
enabled, we would default to a release build. However, that results in known
leaks being reported with LSAN when building with a debug standard library.
Pass along the
LIBDISPATCH_BUILD_TYPE
into the CMake build and map that to theCMAKE_BUILD_TYPE for the project.
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.