-
Notifications
You must be signed in to change notification settings - Fork 207
Attempt to unbreak the build by building SwiftDriver module with -enable-testing
in CMake.
#363
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
Do we build in release configuration? (https://bugs.swift.org/browse/SR-1354) I ran into this just now too when running the integration tests with spm (This fixed there, diff is broken to fix markdown): diff --git a/README.md b/README.md
index b17beb4..442acaf 100644
--- a/README.md
+++ b/README.md
@@ -88,7 +88,7 @@ on the command line:
$ SWIFT_DRIVER_ENABLE_INTEGRATION_TESTS=1 \
SWIFT_DRIVER_LIT_DIR=/path/to/build/Ninja-ReleaseAssert/swift-.../test-... \
- swift test -c release --parallel
+ swift test -c release -Xswiftc -enable-testing --parallel
#### Testing against `swift` compiler trunk |
I think in this case the problem is a little bit different, here the CMake build (not part of the |
7042a83
to
6bc52b8
Compare
Ah, does it need to build the tests? So with this change we build with testability when doing things like building a toolchain? If yes, do we have a long term plan for getting rid of |
Yeah that's a good question, and I definitely don't think this is anything workable long-term. This has been a bit of a perfect storm where our use of Long term, we should absolutely move away from |
@swift-ci please test |
Ah, macOS PR testing seems to have failed with this:
|
Folks, we can't have PR testing broken. I'm going to land #364 to disable the code with |
Make sure to revert #364 before tackling this. |
6bc52b8
to
6876b79
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
Pass
-enable-testing
to SwiftDriver CMake build to allow the tests to be built on Linux in the presence of@testable
.Linux build bots are otherwise failing with:
Tests relying on
SwiftDriver
were disabled in #364. This PR restores these tests.