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 vendor/llvm #2236

Closed
wants to merge 1 commit into from
Closed

Conversation

winksaville
Copy link
Contributor

Add LLVM as a submodule to zig so that LLVM maybe easily compiled and
different versions of LLVM can be tested as LLVM evolves.

The acutal submodule is vendo/llvm/src which defaults to LLVM-8.0.0 and
vendor/llvm contain a Makefile that allows it to be compiled as simply as
issuing a make -jN command. But also allows different versions to be
created by including Makefiles (aka .cfg files) which set variables that
control the build process.

Adds LLVM_LINK_STATIC as a cmake variable and suggests linking
vendor/llvm statically if LLVM isn't found or is the wrong version.
This avoids the need to set RPATH or LD_LIBRARY_PATH.

Modify README.md adding instructions for building LLVM using the
submodule. Also add a link to #build-llvm in README.md in error
messages in cmake/Findllvm.cmake.

Add LLVM as a submodule to zig so that LLVM maybe easily compiled and
different versions of LLVM can be tested as LLVM evolves.

The acutal submodule is vendo/llvm/src which defaults to LLVM-8.0.0 and
vendor/llvm contain a Makefile that allows it to be compiled as simply as
issuing a `make -jN` command. But also allows different versions to be
created by including Makefiles (aka .cfg files) which set variables that
control the build process.

Adds LLVM_LINK_STATIC as a cmake variable and suggests linking
vendor/llvm statically if LLVM isn't found or is the wrong version.
This avoids the need to set RPATH or LD_LIBRARY_PATH.

Modify README.md adding instructions for building LLVM using the
submodule. Also add a link to `#build-llvm` in README.md in error
messages in cmake/Findllvm.cmake.
@andrewrk
Copy link
Member

Sorry, I'm not willing to support this.

@andrewrk andrewrk closed this Apr 10, 2019
@winksaville
Copy link
Contributor Author

If I may ask, what is it you don't like?

@andrewrk
Copy link
Member

It adds git submodules and it modifies/complicates the stage1 build for a near-nonexistent use case.

@winksaville
Copy link
Contributor Author

winksaville commented Apr 11, 2019 via email

@andrewrk
Copy link
Member

This is the supported process for building LLVM and clang from source: https://github.com/ziglang/zig/wiki/How-to-build-LLVM,-libclang,-and-liblld-from-source

This proposal adds another one, that I'm not convinced is better. It would just add confusion to the build process of Zig.

@winksaville
Copy link
Contributor Author

winksaville commented Apr 11, 2019 via email

@andrewrk
Copy link
Member

Related: #853

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.

2 participants