获取编译器名字更简洁的接口 #6091
wujilingfeng
started this conversation in
General
获取编译器名字更简洁的接口
#6091
Replies: 4 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
https://xmake.io/#/manual/project_target?id=add-compiler-specific-flags |
Beta Was this translation helpful? Give feedback.
0 replies
-
local program, toolname = target:tool("cxx") |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我为了获取编译器的名字,查阅了百度,也问了智普请言,通义千问,文心一言,方法都不对。最后查阅官网,没有明显的指导获取编译器名字的文字.....。最后耗了一天的时间,在issue当中搜索到有用的信息,似乎只有一篇issue提到这个问题,而且api非常的不直观,target::has_tool的形式获取编译器名字。
我希望xmake能以更直观,简洁的方式提供编译器的名字,浪费这么长时间,我想并不全部是我的责任。
祝好。
Beta Was this translation helpful? Give feedback.
All reactions