Skip to content

Swift: Disable optimization when compiling in Debug

David Geldreich requested to merge r2d3/cmake:swift_debug into master

By default no -O... flag is specified for Debug configuration for Swift so Xcode adds a (wrong) -O flag that prevents one from accessing variables while debugging. Add -Onone to the Swift Debug configuration to avoid this.

Fixes: #23818 (closed)

Edited by Brad King

Merge request reports