Skip to content

Commit 56c2428

Browse files
authored
Merge pull request #2109 from tweag/cg/fix_is_darwin
fix: add `darwin_x86_64` to the `is_darwin` check
2 parents 48b0392 + 8ffc4ab commit 56c2428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/os_info.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@bazel_tools//tools/cpp:lib_cc_configure.bzl", "get_cpu_value")
22

33
_os_info_bzl_template = """
44
cpu_value = "{CPU_VALUE}"
5-
is_darwin = cpu_value == "darwin" or cpu_value == "darwin_arm64"
5+
is_darwin = cpu_value == "darwin" or cpu_value == "darwin_arm64" or cpu_value == "darwin_x86_64"
66
is_darwin_arm64 = cpu_value == "darwin_arm64"
77
is_linux = cpu_value == "k8" or cpu_value == "aarch64"
88
is_windows = cpu_value == "x64_windows"

0 commit comments

Comments
 (0)