You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be! XCTest should be built in release mode (passed the --release flag) when Swift is being built in release mode. It should be built in debug mode when Swift is built in debug mode.
(It might also be worth looking into the other Swift build modes, such as when assertions are turned on, and determine whether we should reflect that in how XCTest is built. But that's outside the scope of this task.)
The text was updated successfully, but these errors were encountered:
jamal (JIRA User), your changes look pretty much perfect – thank you!! Please send pull requests when you can, and assign them to me. I'll test them on CI and merge them.
Additional Detail from JIRA
md5: 27328da1d032e726efe058bc7dc22b33
Issue Description:
swift-corelibs-xctest's build_script.py is able to build the project in either --debug or --release mode:
swift-corelibs-xctest/build_script.py
Lines 236 to 249 in 360a13a
The Swift build script, utils/build-script, also takes parameters to determine the build mode:
https://github.com/apple/swift/blob/e8eba770d58ce512046951b0647941194987525e/utils/build-script#L358-L367
Swift has many build modes: Debug, Release, Release+Assert, etc. This build mode is never reflected in the XCTest build mode, however: https://github.com/apple/swift/blob/e8eba770d58ce512046951b0647941194987525e/utils/build-script-impl#L1937-L1942
It should be! XCTest should be built in release mode (passed the --release flag) when Swift is being built in release mode. It should be built in debug mode when Swift is built in debug mode.
(It might also be worth looking into the other Swift build modes, such as when assertions are turned on, and determine whether we should reflect that in how XCTest is built. But that's outside the scope of this task.)
The text was updated successfully, but these errors were encountered: