Skip to content

Commit

Permalink
fix mac build error
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperMarz committed Jan 13, 2025
1 parent 359b46e commit 6050299
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ build:linux --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-l%:libgcc.a

# platform specific config
# Bazel will automatic pick platform config since we have enable_platform_specific_config set
build:linux --copt=-fopenmp
build:linux --linkopt=-fopenmp
build:macos --copt="-Xpreprocessor -fopenmp"
build:macos --copt=-Xclang=-fopenmp
build:macos --copt=-Wno-unused-command-line-argument
build:macos --features=-supports_dynamic_linker
build:macos --macos_minimum_os=12.0
build:macos --host_macos_minimum_os=12.0
build:macos --macos_minimum_os=13.0
build:macos --host_macos_minimum_os=13.0
build:macos --action_env MACOSX_DEPLOYMENT_TARGET=13.0

build:linux --copt=-fopenmp
build:linux --linkopt=-fopenmp
3 changes: 2 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "dataproxy_sdk_pip",
python_version = python_version,
requirements_linux = "//dataproxy_sdk/python:requirements_lock_{}.txt".format(python_version.replace(".", "_")),
requirements_lock = "//dataproxy_sdk/python:requirements_lock_{}.txt".format(python_version.replace(".", "_")),
)
for python_version in SUPPORTED_PYTHON_VERSIONS
]
Expand All @@ -58,6 +58,7 @@ bazel_dep(name = "yacl", version = "0.4.5b10-nightly-20241224")
bazel_dep(name = "pybind11_bazel", version = "2.13.6")
bazel_dep(name = "rules_python", version = "0.34.0")
bazel_dep(name = "rules_proto_grpc_python", version = "5.0.1")

bazel_dep(name = "grpc")
single_version_override(
module_name = "grpc",
Expand Down

0 comments on commit 6050299

Please sign in to comment.