File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
build --cxxopt='-std=c++17'
5
5
test --cxxopt='-std=c++17'
6
6
7
+ # Duplicate the `--cxxopt` flag here to workaround gRPC build issue. See:
8
+ # https://github.com/bazelbuild/bazel/issues/16371
9
+ build --host_cxxopt='-std=c++17'
10
+ test --host_cxxopt='-std=c++17'
11
+
7
12
# Workaround for broken grpc build on macOS.
8
13
# See: https://github.com/bazelbuild/bazel/issues/4341
9
14
build --copt -DGRPC_BAZEL_BUILD
Original file line number Diff line number Diff line change @@ -176,13 +176,9 @@ bazel-fetch:
176
176
fi ; \
177
177
done
178
178
179
- # NOTE(cummins): Workaround for grpc++ build failure caused by --cxxopt in
180
- # .bazelrc not being used. See: https://github.com/bazelbuild/bazel/issues/16371
181
- _BAZEL_CXXOPTS = "-std=c++17"
182
-
183
179
bazel-build : bazel-fetch
184
180
$(PYTHON ) -m pip install -r compiler_gym/requirements.txt -r compiler_gym/requirements_build.txt
185
- BAZEL_CXXOPTS= $( _BAZEL_CXXOPTS ) $(BAZEL ) $(BAZEL_OPTS ) build $(BAZEL_BUILD_OPTS ) $(BUILD_TARGET )
181
+ $(BAZEL ) $(BAZEL_OPTS ) build $(BAZEL_BUILD_OPTS ) $(BUILD_TARGET )
186
182
187
183
bdist_wheel : bazel-build
188
184
$(PYTHON ) setup.py bdist_wheel
You can’t perform that action at this time.
0 commit comments