[SR-5968] Build never ends if SWIFT_OPTIMIZATION_LEVEL is -O
or -Owholemodule
in Xcode 9
#48527
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
optimized only
Flag: An issue whose reproduction requires optimized compilation
Environment
Xcode Version 9.0 (9A235)
macOS Sierra 10.12.6
Additional Detail from JIRA
md5: cdbcbf00f74d364d30452e27a6b6a353
Issue Description:
Summary
Build never ends if SWIFT_OPTIMIZATION_LEVEL is `-O` or `-Owholemodule` in Xcode 9.
CPU usage of swift process reaches 100%.
Steps to Reproduce:
Create a new Swift project.
Set `SWIFT_OPTIMIZATION_LEVEL = -O` in build setting or select Release build configuration in schema
Add a new file and paste the following code
Build
Expected Results:
Build finishes
Actual Results:
Build never ends, swift process CPU usage reaches 100%
The text was updated successfully, but these errors were encountered: