Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Clang警告我,
clang: warning: argument unused during compilation: '-Os'
在编译期间使用make. 为什么它不接受优化标志?
make
-Os不是(大多数)有效的优化选项clang- 它与 GCC 不完全兼容。
-Os
clang
clang 手册页对您的特定版本接受哪些选项具有权威性(具体而言,按大小优化还不是 LLVM 的主要关注点)。Apple 已推出 和 的补丁-Os,-Oz但大多数软件包不包含这些更新。
-Oz