Skip to content

Commit 4c1d38f

Browse files
committed
build: Add macOS x86_64 target support for ARM hosts
1 parent cccae4a commit 4c1d38f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

build/Utils.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ function(extract_sources sources_file)
206206
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
207207
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
208208
set(target_platforms_arg "--target-platforms=shim//:macos-arm64")
209+
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
210+
set(target_platforms_arg "--target-platforms=shim//:macos-x86_64")
209211
endif()
210212
endif()
211213

shim/BUCK

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,11 @@ execution_platform(
9090
use_windows_path_separators = False,
9191
visibility = ["PUBLIC"],
9292
)
93+
94+
execution_platform(
95+
name = "macos-x86_64",
96+
cpu_configuration = "prelude//cpu:x86_64",
97+
os_configuration = "prelude//os:macos",
98+
use_windows_path_separators = False,
99+
visibility = ["PUBLIC"],
100+
)

0 commit comments

Comments
 (0)