Replies: 1 comment 2 replies
-
试下 xmake f -p cross --cross=arm-linux-gnueabi- --sdk=/usr -c
xmake -rv 设置 -target 和 sysroot ,你只能自定义 toolchain |
Beta Was this translation helpful? Give feedback.
2 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.
-
由于 clang 本身支持设置 target,只是缺少对应架构的 include 和 lib 文件夹,我先下载了对应的 sdk:
设置交叉编译:
对应的测试 target:
编译命令没有出现 SDK 的任何内容:
理论上应该是 clang -target aarch64-linux-gnu --sysroot=/usr/arm-linux-gnueabi cctest.c -o cctest ?
Beta Was this translation helpful? Give feedback.
All reactions