关于armclang下smallest讨论 #5047
Dozingfiretruck
started this conversation in
General
Replies: 1 comment 4 replies
-
一种改成继承 clang ,一种参考 clang 的实现,单独改下 languages 提个 pr 过来 xmake/xmake/modules/core/tools/clang.lua Line 119 in c2f2ad5 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
armclang的nf_optimize现在xmake里是直接用继承的gcc的,但是armclang有点区别。gcc是
none = "-O0"
, fast = "-O1"
, faster = "-O2"
, fastest = "-O3"
, smallest = "-Os"
, aggressive = "-Ofast"
,armclang应该是
none = "-O0"
, fast = "-O1"
, faster = "-O2"
, fastest = "-O3"
, smallest = "-Oz"
, aggressive = "-Ofast"
smallest对应的应该是-Oz,然后-Os armclang有一个单独的平衡模式,这个要怎么加进去呢?
另外clang下应该也是一样的,要不要再加一个optimize等级来更好的区分-Oz 和 -Os
Beta Was this translation helpful? Give feedback.
All reactions