Replies: 1 comment
-
要切到 cross 平台,走交叉编译,否则默认不走交叉编译的,会有其他 flags 另外,尽量不要挨个设置 cxx/cc,直接设置 sdk ,就能自动探测所有 cc/cxx/ld 工具链 xmake f -p cross --sdk=/usr/bin -c 既然在 /usr/bin 就直接 xmake f -p cross --cross=arm-linux-gnueabihf- -c |
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
-
cmake交叉编译时只需要简单的指定CC和CXX:
而xmake这样做会出错:
是否有办法像cmake一样只要指定cc和cxx就可以交叉编译?
Beta Was this translation helpful? Give feedback.
All reactions