同步操作将从 OpenHarmony/prebuilts_lite_sysroot 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
sysroot is a root directory used by the Clang compiler to search for standard libraries and header files. The libc library is generated from the open-source musl library by compilation.
/prebuilts/lite/sysroot
├── build # Toolchain building (including build scripts)
├── usr # C library and header files exposed externally
│ ├── include # Header files exposed externally
│ │ └── arm-liteos # Chip architecture for the toolchain
│ └── lib # C library exposed externally
│ └── arm-liteos # Chip architecture for the toolchain
sysroot applies only to the OpenHarmony kernel.
When bugs in the musl library are fixed or the version is updated, you need to compile and build a new libc library by executing make
in the build directory, respectively. The new libc library will be stored in the /prebuilts/lite/sysroot/usr directory.
clang -o helloworld helloworld.c -target arm-liteos --sysroot=/my_ohos_root_path/prebuilts/lite/sysroot/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。