File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ build --protocopt=--experimental_allow_proto3_optional
2929build --incompatible_require_linker_input_cc_api=false
3030
3131build:macos --apple_platform_type=macos
32+ build:macos --repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
3233build:macos_arm64 --cpu=darwin_arm64
34+ build:macos_arm64 --repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
3335build:macos_arm64 --linkopt=-Wl,-undefined,dynamic_lookup
3436build:macos_arm64 --host_linkopt=-Wl,-undefined,dynamic_lookup
3537build --conlyopt=-std=c11
Original file line number Diff line number Diff line change 6464 fi
6565 echo "$HOME/.local/bin" >> $GITHUB_PATH
6666 echo "USE_BAZEL_VERSION=7.7.0" >> $GITHUB_ENV
67+ echo "BAZEL_USE_CPP_ONLY_TOOLCHAIN=1" >> $GITHUB_ENV
6768 bazel --version
6869
6970 - name : Install build tooling
Original file line number Diff line number Diff line change 6262 fi
6363 echo "$HOME/.local/bin" >> $GITHUB_PATH
6464 echo "USE_BAZEL_VERSION=7.7.0" >> $GITHUB_ENV
65+ echo "BAZEL_USE_CPP_ONLY_TOOLCHAIN=1" >> $GITHUB_ENV
6566 bazel --version
6667
6768 - name : Build the package
Original file line number Diff line number Diff line change @@ -99,13 +99,16 @@ def finalize_options(self):
9999 # This flag determines the platform qualifier of the macos wheel.
100100 if platform .machine () == 'arm64' :
101101 self ._additional_build_options = ['--macos_minimum_os=11.0' ,
102- '--config=macos_arm64' ]
102+ '--config=macos_arm64' ,
103+ '--repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1' ]
103104 else :
104- self ._additional_build_options = ['--macos_minimum_os=10.14' ]
105+ self ._additional_build_options = ['--macos_minimum_os=10.14' ,
106+ '--repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1' ]
105107
106108 # Remove any overrides from conda environment that break Bazel on macOS
107109 os .environ .pop ('APPLE_SDK_VERSION_OVERRIDE' , None )
108110 os .environ .pop ('XCODE_VERSION_OVERRIDE' , None )
111+ os .environ ['BAZEL_USE_CPP_ONLY_TOOLCHAIN' ] = '1'
109112
110113 if 'ICONV_LIBRARIES' in os .environ :
111114 self ._additional_build_options .append (
You can’t perform that action at this time.
0 commit comments