diff --git a/.bazelrc b/.bazelrc index 832a03d..dae7fcb 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,3 +1,8 @@ build --copt=-g0 --copt=-O3 --copt=-DNDEBUG + build:linux --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-lm build:linux --action_env=BAZEL_LINKOPTS=-static-libgcc +build:linux --define os=linux --define cpu=x86_64 + +build:macos_x86_64 --define os=macos --define cpu=x86_64 +build:macos_arm64 --define os=macos --define cpu=arm64 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 0abdf40..76beb0a 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -14,4 +14,4 @@ jobs: - name: Setup and Build run: | pip install -r requirements.txt - bazel build --cpu=x86_64 --os=macos @maple2jax//:jax_xc_wheel + bazel build --config=macos_x86_64 @maple2jax//:jax_xc_wheel