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
[SR-15684] Xcode 13.2 CLI tools building swift in release mode: error: remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
#4365
Open
swift-ci opened this issue
Jan 4, 2022
· 3 comments
Adding in --verbose, one can see that both -incremental and -whole-module-optimization are passed in as flags to swiftc. On Xcode 13.1, the line "remark: Incremental compilation has been disabled: it is not compatible with whole module optimization" is present, but it is not fatal; it only becomes fatal on Xcode 13.2, but it seems like the issue is that both -incremental and -whole-module-optimization are passed in from SwiftPM.
The text was updated successfully, but these errors were encountered:
For me, the exit status ($?) is 1, indicating failure. Note, though, that the last line of output is
100%: Build succeeded
and indeed ./.build/apple/Products/Release/protoc-gen-swift is an apparently complete, working executable.
In my testing, I have to build for both architectures simultaneously to produce the failure. Building for just one architecture at a time does not induce failure.
I can't reproduce this from within Xcode itself. I am confirming as well, for the PackageBug.zip example, that this fails from the command line with error code 1 when I do:
Attachment: Download
Environment
xcodebuild Xcode 13.2, Build version 13C90
Monterey 12.1
M1 Max MBP
Additional Detail from JIRA
md5: e549b419adb482736a0b860db11495c1
Issue Description:
Using Xcode 13.2 command line tools, swift build -c release --arch arm64 --arch x86_64 is resulting in the error:
"error: remark: Incremental compilation has been disabled: it is not compatible with whole module optimization"
being fatal, while in Xcode 13.1 and earlier it was non-fatal.
Steps to reproduce:
Install Xcode 13.2 CLI tools. Unzip attached PackageBug.zip.
cd PackageBug ; ./build.sh
Unzip attached PackageBug.zip.
Adding in --verbose, one can see that both -incremental and -whole-module-optimization are passed in as flags to swiftc. On Xcode 13.1, the line "remark: Incremental compilation has been disabled: it is not compatible with whole module optimization" is present, but it is not fatal; it only becomes fatal on Xcode 13.2, but it seems like the issue is that both -incremental and -whole-module-optimization are passed in from SwiftPM.
The text was updated successfully, but these errors were encountered: