Skip to content

Commit

Permalink
Stop building PIE
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbarsky committed Oct 3, 2023
1 parent 2ec5f47 commit 3ece168
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build --dynamic_mode=off
build --force_pic
# Upstream builds PIE, but it doesn't have much benefit when fully statically linked.
#build --force_pic

build --bes_results_url=https://app.buildbuddy.io/invocation/
build --bes_backend=grpcs://remote.buildbuddy.io
Expand All @@ -10,7 +11,6 @@ build --remote_timeout=3600
build --remote_executor=grpcs://remote.buildbuddy.io
build --jobs=500


build --extra_execution_platforms=//rbe_platform
build --host_platform=//rbe_platform

Expand All @@ -24,7 +24,13 @@ build --experimental_platform_in_output_dir

build --incompatible_enable_cc_toolchain_resolution
build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build --incompatible_strict_action_env=true
build --host_action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build --incompatible_strict_action_env

# ThinLTO feature by itself doesn't seem to do anything?
#build --features=thin_lto
#build --copt -flto=thin
#build --linkopt -flto=thin

# Compilation Flags
build -c opt
Expand Down

0 comments on commit 3ece168

Please sign in to comment.