使用示例


clang -fuse-ld=lld --target=loongarch64-linux-gnu --sysroot=$GCC_TOOLCHAIN_PATH/loongarch64-linux-gnu/sysroot/ hello.c
clang --target=loongarch64-linux-gnu --sysroot=$GCC_TOOLCHAIN_PATH/loongarch64-linux-gnu/sysroot/ -B $GCC_TOOLCHAIN_PATH hello.c

注:$GCC_TOOLCHAIN_PATH为gcc交叉工具链路径,需要从这里下载。

更多关于如何交叉编译,可参考上游社区手册


©龙芯开源社区 all right reserved,powered by Gitbook文档更新时间: 2024-04-19 09:11:59

results matching ""

    No results matching ""

    results matching ""

      No results matching ""