如何对多种配置进行并行编译 #3338
Answered
by
waruqi
MasterBalll
asked this question in
Q&A
如何对多种配置进行并行编译
#3338
-
有这样一种需求,就是要在 windows 与 cross 下对多种配置进行编译、运行(具体来说,是对几个嵌入式平台的仿真以及对这若干目标平台程序进行验证)。 xmake f -p windows -a x86 -m release --opt1=A
xmake
xmake r
xmake f -p windows -a x86 -m release --opt1=B
xmake
xmake r
xmake f -p cross -a xtensa -m release --opt1=A # 这里使用自定义的嵌入式工具链
xmake
xmake r
xmake f -p cross -a xtensa -m release --opt1=B # 同上
xmake
xmake r 但这样会比较浪费时间,特别是切换配置时似乎要重新检查编译、链接选项等,想问下有无好办法? |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Feb 7, 2023
Replies: 1 comment 2 replies
-
不加 -c,默认 build 分 plat/mode/arch 存储,切平台和arch/mode 不会重新检测,切配置当然要重新检查的,否则不保证编译正确。。 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
MasterBalll
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://xmake.io/#/zh-cn/plugin/builtin_plugins?id=%e5%ae%8f%e8%ae%b0%e5%bd%95%e5%92%8c%e5%9b%9e%e6%94%be
不加 -c,默认 build 分 plat/mode/arch 存储,切平台和arch/mode 不会重新检测,切配置当然要重新检查的,否则不保证编译正确。。