Fix Bazel build instructions and elaborated them #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
bazel
call that utilized a local LLVM installation failed withlinker errors because the link order of LLVM libraries wasn't in
dependency order. The fix is to utilize LLD via the
-fuse-ld
flag. LLD,unlike traditional Unix-like linkers, allows for reverse dependencies
(aka backrefs. See the --warn-backrefs option). Note that the
-fuse-id
flag was being used for the Bazel-provided LLVM installation configuration.
Several other changes were made:
build crubit. This was done since the former usually need be done only
once.
system installation of bazel was incorrect (the package name is actually
bazel-bootstrap) and, even if it were correct, would install a version
that is too old.
one to the other.
lld
. This reducesvariance of tooling used to build this project.
$LLVM_INSTALL_PATH/bin
to thePATH
so this compiler is selectedinstead of any system installations.