Skip to content

Commit

Permalink
Upgrade bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbarsky committed Oct 13, 2024
1 parent eec0d77 commit 4b93f71
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
57 changes: 29 additions & 28 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
build --dynamic_mode=off
common --dynamic_mode=off
# Upstream builds PIE, but it doesn't have much benefit when fully statically linked.
#build --force_pic
#common --force_pic

build --bes_results_url=https://app.buildbuddy.io/invocation/
build --bes_backend=grpcs://remote.buildbuddy.io
build --remote_cache=grpcs://remote.buildbuddy.io
build --remote_download_toplevel
build --nobuild_runfile_links
build --remote_timeout=3600
build --remote_executor=grpcs://remote.buildbuddy.io
build --jobs=500
common --bes_results_url=https://app.buildbuddy.io/invocation/
common --bes_backend=grpcs://remote.buildbuddy.io
common --remote_cache=grpcs://remote.buildbuddy.io
common --remote_download_toplevel
common --nobuild_runfile_links
common --remote_timeout=3600
common --remote_executor=grpcs://remote.buildbuddy.io
common --noexperimental_throttle_remote_action_building
common --jobs=500

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

build --platforms @zig_sdk//libc_aware/platform:linux_amd64_musl
build --experimental_platform_in_output_dir
common --platforms @zig_sdk//libc_aware/platform:linux_amd64_musl
common --experimental_platform_in_output_dir

build --incompatible_enable_cc_toolchain_resolution
build --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build --host_action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build --incompatible_strict_action_env
common --incompatible_enable_cc_toolchain_resolution
common --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
common --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
common --host_action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
common --incompatible_strict_action_env

# TODO(zbarsky): This doesn't build due to "zlib.h" vs <zlib.h> usage.
build --@llvm_zlib//:llvm_enable_zlib=false
build --experimental_merged_skyframe_analysis_execution
# TODO(zbarsky): This doesn't compile due to "zlib.h" vs <zlib.h> usage.
common --@llvm_zlib//:llvm_enable_zlib=false
common --experimental_merged_skyframe_analysis_execution

build --features=thin_lto
common --features=thin_lto
# ThinLTO feature doesn't exist in Zig toolchain, so we must set the flags manually.
# It also doesn't support LTO on darwin targets, so we can't set this globally.
# Instead, we configure copt/linkopt inside the toolchain itself (with a WORKSPACE patch).
#build --copt -flto=thin
#common --copt -flto=thin

# Compilation Flags
build -c opt
build --strip=always
build --copt -ffunction-sections
build --copt -fdata-sections
common -c opt
common --strip=always
common --copt -ffunction-sections
common --copt -fdata-sections
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.2
7.3.2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bazel-*
*.swp

0 comments on commit 4b93f71

Please sign in to comment.