Skip to content

Commit 6ddf211

Browse files
committed
Prevent building directly on Macos
1 parent 12041d1 commit 6ddf211

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ meson_with_requirements(
209209
requirements = [
210210
requirement("pyelftools"),
211211
],
212+
target_compatible_with = select({
213+
"@platforms//os:linux": [],
214+
"//conditions:default": ["@platforms//:incompatible"],
215+
}),
212216
visibility = ["//visibility:public"],
213217
deps = [
214218
"@libnuma",

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module(
33
repo_name = "dpdk",
44
)
55

6+
bazel_dep(name = "platforms", version = "1.0.0")
67
bazel_dep(name = "rules_foreign_cc", version = "0.15.1")
78
bazel_dep(name = "rules_python", version = "1.6.3")
89
bazel_dep(name = "openssl", version = "3.3.1.bcr.7")

0 commit comments

Comments
 (0)