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 support for fully hermetic sysroots #304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AustinSchuh
Copy link

Clang wants, in order:
C++ header files only when compiling for C++
-isystem external/llvm_toolchain_llvm/include/c++/v1/
-isystem external/llvm_toolchain_llvm/include/x86_64-unknown-linux-gnu/c++/v1/

C header files
-isystem external/llvm_toolchain_llvm/lib/clang/16/include

We need a new flag_set which comes after the C++ headers to be able to inject them always, but after the C++ headers.

Support for this in toolchains_llvm can land after this gets merged and likely released, unfortunately.

Clang wants, in order:
 C++ header files only when compiling for C++
    -isystem external/llvm_toolchain_llvm/include/c++/v1/
    -isystem external/llvm_toolchain_llvm/include/x86_64-unknown-linux-gnu/c++/v1/

 C header files
    -isystem external/llvm_toolchain_llvm/lib/clang/16/include

We need a new flag_set which comes after the C++ headers to be able to
inject them always, but after the C++ headers.

Support for this in toolchains_llvm can land after this gets merged and
likely released, unfortunately.

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant