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

Don't depend on clang-native #20

Open
rossburton opened this issue May 16, 2016 · 3 comments
Open

Don't depend on clang-native #20

rossburton opened this issue May 16, 2016 · 3 comments

Comments

@rossburton
Copy link
Contributor

Currently target clang depends on clang-native for the llvm-tblgen binary. There should be a way of either bootstrapping that in the target clang build, or a clang-tools-native recipe that just builds that instead of all of clang.

@kraj
Copy link
Owner

kraj commented Jun 14, 2016

llvm-tblgen/clang-tlbgen is whats needed precisely. However, clang-native is needed in anycase since clang only build once for one host and there is no need to rebuild it again and again for different targets unlike gcc. One can say that I would use gcc everywhere even to build clang target then there is some use of just building minimal clang native. However thats not common usecase, people prefer to bootstrap clang with clang.

@kraj
Copy link
Owner

kraj commented Nov 15, 2017

clang build sequence builds clang-native once and reuses it for cross variants and it also means it reused it across architectures if someone builds form multiple architectures they will definitely see
the benefit. This is then used to build target clang. So even if we were able to trim down the build
to just do enough during native compile, we would still require full llvm-native for other use-cases.

I am temped to not fix it.

@kraj
Copy link
Owner

kraj commented Aug 15, 2019

maybe we can create a clang-minimal-native which could be also provided by clang-native so in cases where clang cross compilers are not sought, users can select

PREFERRED_PROVIDER_virtual/clang-tools-native = "clang-minimal-native"

others can use

PREFERRED_PROVIDER_virtual/clang-tools-native = "clang-native"

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