Skip to content

Commit 6137f40

Browse files
authored
Merge pull request #6 from EnzymeAD/wsmoses-patch-1
Add macOS build flags for Bazel configuration
2 parents fb995ff + 29ee3e3 commit 6137f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/Reactant/build_tarballs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ fi
137137
echo "register_toolchains(\\"//:cc_toolchain_for_ygg_host\\")" >> WORKSPACE
138138
139139
if [[ "${target}" == *-darwin* ]]; then
140+
BAZEL_BUILD_FLAGS+=(--config=macos)
140141
BAZEL_BUILD_FLAGS+=(--define=gcc_linux_x86_32_1=false)
141142
BAZEL_BUILD_FLAGS+=(--define=gcc_linux_x86_64_1=false)
142143
BAZEL_BUILD_FLAGS+=(--define=gcc_linux_x86_64_2=false)
@@ -222,7 +223,6 @@ if [[ "${target}" == aarch64-* ]]; then
222223
fi
223224
224225
if [[ "${bb_full_target}" == *gpu+cuda* ]]; then
225-
BAZEL_BUILD_FLAGS+=(--config=cuda)
226226
BAZEL_BUILD_FLAGS+=(--repo_env=HERMETIC_CUDA_VERSION="${HERMETIC_CUDA_VERSION}")
227227
if [[ "${HERMETIC_CUDA_VERSION}" == *13.* ]]; then
228228
BAZEL_BUILD_FLAGS+=(--config=cuda13)

0 commit comments

Comments
 (0)