Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sysroot support for llvm toolchains #1153

Closed
zxlxz opened this issue Dec 22, 2020 · 2 comments
Closed

add sysroot support for llvm toolchains #1153

zxlxz opened this issue Dec 22, 2020 · 2 comments
Milestone

Comments

@zxlxz
Copy link

zxlxz commented Dec 22, 2020

MacOS/LLVM

当使用llvm.org的LLVM工具链时,报错“找不到头文件”, “找不到链接库”

可能的原因

MacOS的系统c++头文件和库,并不在/usr/include下面,而是类似'/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'这样的目录(可以用xcode-select -p看到)

可能的解决办法

给clang/clang++添加-sysroot参数,指向这个目录貌似可以解决。

@waruqi waruqi added this to the v2.5.1 milestone Dec 22, 2020
@waruqi
Copy link
Member

waruqi commented Dec 22, 2020

我回头改进下

@waruqi
Copy link
Member

waruqi commented Dec 23, 2020

我 dev 上支持了

@waruqi waruqi closed this as completed Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants