修改编译链默认的cxx #2254
Replies: 7 comments
-
clang 是内置工具链,换个名字, 另外直接 xmake f --cxx=clang++ 不就完事了么 |
Beta Was this translation helpful? Give feedback.
-
clang不是内置工具链,如果xmake f --cxx=clang++ 这样用的话,ld的时候用的就是g++了,因为gcc才是系统默认的内置工具链。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2022年4月8日 12:14:55
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [xmake-io/xmake] 修改编译链默认的cxx (Issue #2250)
clang 是内置工具链,换个名字, 另外直接 xmake f --cxx=clang++ 不就完事了么
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
我是说,toolchain("clang") 内部已经定义掉了。。你外面定义有冲突,改个名 https://github.com/xmake-io/xmake/blob/master/xmake/toolchains/clang/xmake.lua |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
这个是目录?clang在 而且你的 toolchain 里面什么都没设置,cxx 也没设置,默认找的当然还是 gcc 了 |
Beta Was this translation helpful? Give feedback.
-
而且我说了,你要改 cxx 。。直接 |
Beta Was this translation helpful? Give feedback.
-
不太清楚为什么clang的优先级比clang++更高 xmake/xmake/toolchains/clang/xmake.lua Line 35 in df7c435 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Xmake Version
v2.6.4+master.26e6cc713
Operating System Version and Architecture
ubuntu18.04
Describe Bug
自定义了一个clang编译工具,但是想修改默认的cxx为clang++,但是实际运行的时候,改不成功,如图:

Expected Behavior
cxx成功修改为clang++
Project Configuration
No response
Additional Information and Error Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions