We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fec8a31 commit 02f5154Copy full SHA for 02f5154
2 files changed
WORKSPACE
@@ -59,3 +59,9 @@ git_repository(
59
remote = "https://github.com/nlohmann/json.git",
60
shallow_since = "1701207391 +0100",
61
)
62
+
63
+http_archive(
64
+ name = "platforms",
65
+ urls = ["https://github.com/bazelbuild/platforms/archive/refs/tags/0.0.6.zip"],
66
+ strip_prefix = "platforms-0.0.6",
67
+)
src/BUILD
@@ -27,10 +27,12 @@ OPT_COPTS = select({
27
"-fno-fast-math",
28
"-flto",
29
"-march=native",
30
- "-mmacosx-version-min=10.15"
31
],
32
":debug": ["-Og"],
33
-}) + ["-std=c++20"]
+}) + ["-std=c++20"] + select({
+ "@platforms//os:macos": ["-mmacosx-version-min=10.15"],
34
+ "//conditions:default": [],
35
+})
36
37
OPT_LINKOPTS = select({
38
"//conditions:default": [
0 commit comments