forked from dzbarsky/static-clang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.0.2 | ||
7.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
bazel-* | ||
*.swp |