Skip to content

Commit

Permalink
fix: fix m1 macos build (#439)
Browse files Browse the repository at this point in the history
* fix: fix m1 macos build

* format MODULE.bazel
  • Loading branch information
tongke6 authored Dec 9, 2024
1 parent b9dc6c3 commit c1de028
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module(
# --registry=https://bcr.bazel.build
bazel_dep(name = "rules_proto", version = "4.0.0")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "apple_support", version = "1.17.1")
bazel_dep(name = "rules_cc", version = "0.0.12")
single_version_override(
module_name = "rules_cc",
Expand All @@ -37,7 +38,6 @@ bazel_dep(name = "abseil-cpp", version = "20230802.1")
bazel_dep(name = "gflags", version = "2.2.2")
bazel_dep(name = "zlib", version = "1.3.1.bcr.3")
bazel_dep(name = "msgpack-c", version = "6.1.0")
bazel_dep(name = "apple_support", version = "1.17.1")
bazel_dep(name = "blake3", version = "1.5.4")
bazel_dep(name = "fmt", version = "11.0.2")
bazel_dep(name = "spdlog", version = "1.14.1")
Expand Down Expand Up @@ -67,7 +67,21 @@ single_version_override(

# --registry=https://baidu.github.io/babylon/registry
bazel_dep(name = "leveldb", version = "1.23")
bazel_dep(name = "openssl", version = "3.3.2")
bazel_dep(name = "openssl", version = "3.3.2.bcr.1")

new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")

new_local_repository(
name = "macos_omp_x64",
build_file = "@//bazel:local_openmp_macos.BUILD",
path = "/usr/local/opt/libomp",
)

new_local_repository(
name = "macos_omp_arm64",
build_file = "@//bazel:local_openmp_macos.BUILD",
path = "/opt/homebrew/opt/libomp/",
)

# test
bazel_dep(name = "googletest", version = "1.15.2", dev_dependency = True)
Expand Down

0 comments on commit c1de028

Please sign in to comment.