Commit f7c5563
build: Pass --force_pic to bazel
We already pass the -fPIC option in envoy.bazelrc (build:linux
--copt=-fPIC) to the compiler, but bazel does not know about it and still
builds both .pic.o and .o objects. Passing --force_pic to bazel supresses
the .o compilation and saves build time.
Noticed when non-test sources (such as Compiling
source/common/network/address_impl.cc) were compiled for tests right
after cilium-envoy was built. With the --force_pic option the tests build
shows building only test files.
Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>1 parent 94c2d1b commit f7c5563
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments