xpack-dev-tools / clang-xpack

A binary distribution of the LLVM clang compiler infrastructure
https://xpack-dev-tools.github.io/clang-xpack/
MIT License
10 stars 2 forks source link

The `include` folder is empty, can't build certain projects with it #6

Closed yay closed 1 year ago

yay commented 2 years ago

For example, can't build Odin: https://github.com/odin-lang/Odin

Screenshot 2022-09-16 at 7 22 21 PM
ilg-ul commented 2 years ago

Oops!

I have to check why the build script does not populate this folder.

ilg-ul commented 2 years ago

Hmmm... This is tricky. :-(

The folder is removed here:

The toolchain was intended for generic builds, it looks like you need it to build LLVM derived applications, and in this case you need the full LLVM distribution, not the clang toolchain.

Can you build the project with the Homebrew clang? If so, I can try to use a similar configuration.

yay commented 2 years ago

If you mean with brew install llvm? Yes.

ilg-ul commented 2 years ago

Yeah, that's the difference, in HomeBrew it is called llvm while this one is called clang...

I'll try a full build, but I don't know how large the resulting archives will be.

ilg-ul commented 1 year ago

I did a test build where I no longer removed the LLVM headers and what I considered less important executables.

Unfortunately the archive size increased from 115.6 to 236.4 MB, which is quite a lot (btw, do you know what c-index-test and llvm-exegesis do?)

I don't know yet how it'll end, on one side I'd like to keep the archive sizes within reasonable limits, on the other side I'd like to generally follow the HomeBrew distribution. We'll see...

yay commented 1 year ago

Thank you for looking into this.

I don't happen to know what those executables do. I had to revert to Homebrew for older LLVM builds and for new ones, they were kind enough to start providing Apple silicon builds: https://github.com/llvm/llvm-project/issues/57575

ilg-ul commented 1 year ago

I'll try to replicate the HomeBrew configuration, but I can't promise anything now.

The linux-x64 archive is larger (272.7 MB), and the Windows archive is usually even larger. :-(

yay commented 1 year ago

No worries. Feel free to close this issue, if you don't feel comfortable about the bundle size or have other concerns.