Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bazel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ Note: this assumes that both: clang compiler and libc++ library are installed in
and that `clang` and `clang++` are available in `$PATH`. On some systems, exports might need
to be changed to versioned binaries, e.g. `CC=clang-7` and `CXX=clang++-7`.

You might also need to ensure libc++ is installed correctly on your system, e.g. on Ubuntu this
might look like `sudo apt-get install libc++abi-7-dev libc++-7-dev`.

## Using a compiler toolchain in a non-standard location

By setting the `CC` and `LD_LIBRARY_PATH` in the environment that Bazel executes from as
Expand Down
2 changes: 1 addition & 1 deletion bazel/cc_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main():
for arg in sys.argv[1:]:
if arg == "-lstdc++":
if "-stdlib=libc++" in envoy_cxxflags:
arg.append("-lc++")
argv.append("-lc++")
elif arg.startswith("-Wl,@"):
# tempfile.mkstemp will write to the out-of-sandbox tempdir
# unless the user has explicitly set environment variables
Expand Down