Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Sep 18, 2024
1 parent 96ba1c6 commit 94a5fd1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ common --enable_platform_specific_config
# off: Links all targets in mostly static mode. If -static is set in linkopts, targets will change to fully static.
build --dynamic_mode=off

# On linux (targetting linux and macos) use the zig toolchain from hermetic_cc_toolchain
build:linux --platforms @zig_sdk//libc_aware/platform:linux_amd64_musl
# Don't clobber bazel-out/[platform]/bin
build --experimental_platform_in_output_dir

# On Linux (targetting linux and macos) use the zig toolchain from hermetic_cc_toolchain
build:linux --platforms @zig_sdk//libc_aware/platform:linux_amd64_musl
build:linux --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build:linux --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build:linux --host_action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1

# On Windows, use the host toolchain
# NB: after https://github.com/uber/hermetic_cc_toolchain/pull/190 is included in a release,
# this flag should no longer be needed.
build:windows --noincompatible_enable_cc_toolchain_resolution

build --incompatible_strict_action_env

build --features=thin_lto
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
rm MODULE.bazel
mv MODULE.bazel.windows MODULE.bazel
bazel build @libarchive//tar
mv bazel-bin/external/libarchive~/tar/bsdtar.exe tar_windows_x86_64.exe
- name: smoke test
Expand Down
2 changes: 0 additions & 2 deletions MODULE.bazel.windows

This file was deleted.

0 comments on commit 94a5fd1

Please sign in to comment.