gpt4 book ai didi

ios - Xcode 9.3 中 Swift 的 -Osize build设置是什么?

转载 作者:搜寻专家 更新时间:2023-11-01 07:03:30 25 4
gpt4 key购买 nike

今天我将我的 Xcode 从 9.2 更新到 9.3

因此提到 Swift 编译器添加了新的代码优化,通过 -Osize Build 设置启用

enter image description here

最佳答案

来自release notes

Added an option to optimizing by size (-Osize) to the Optimization Level for the Swift compiler to the Build Settings pane of the Project editor. When this mode is selected the Swift compiler minimizes the size of compiled code. (36887476)

The choice for compiling Swift code by file or by module moved from the Optimization Level setting to Compilation Mode, which is a new setting for the Swift compiler in the Build Settings pane of the Project editor. Previously this choice was combined with others in the Optimization Level setting. Compiling by file enables building only the files that changed, enabling faster builds. Compiling by module enables better optimization. (36887476)

关于ios - Xcode 9.3 中 Swift 的 -Osize build设置是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49625595/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com