Skip to content

Commit

Permalink
gcc: add a --host_linkopt to use gold too (#36438)
Browse files Browse the repository at this point in the history
Without this, when building in the envoy docker without RBE, I see gcc
trying to use `lld` instead, and it's (a) not in `$PATH` and (b) counter
to what we had set in `--linkopt` for the gcc config.

Risk Level: low
Testing: local build in envoy docker

Signed-off-by: Alejandro R. Sedeño <asedeno@google.com>
  • Loading branch information
asedeno authored Oct 3, 2024
1 parent 24fe164 commit 505f125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ build:clang-pch --spawn_strategy=local
build:clang-pch --define=ENVOY_CLANG_PCH=1

# Use gold linker for gcc compiler.
build:gcc --linkopt=-fuse-ld=gold
build:gcc --linkopt=-fuse-ld=gold --host_linkopt=-fuse-ld=gold
build:gcc --test_env=HEAPCHECK=
build:gcc --action_env=BAZEL_COMPILER=gcc
build:gcc --action_env=CC=gcc --action_env=CXX=g++
Expand Down

0 comments on commit 505f125

Please sign in to comment.