Skip to content

Commit 3506c7f

Browse files
committed
Merge branch 'main' into milestone1
2 parents 2815c71 + 08cd04d commit 3506c7f

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

.github/workflows/build-presets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
preset: [macos-arm64, pybind, llm]
23+
preset: [macos, ios, ios-simulator, pybind, llm]
2424
with:
2525
job-name: build
2626
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++${CMAKE_CXX_STANDARD}")
8+
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
9+
10+
set(
11+
_compiler_flags
12+
"-ffile-prefix-map=${PROJECT_SOURCE_DIR}=/executorch"
13+
"-fdebug-prefix-map=${PROJECT_SOURCE_DIR}=/executorch"
14+
)
15+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_compiler_flags}")
16+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_compiler_flags}")
17+
18+
set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON)
19+
set_overridable_option(EXECUTORCH_BUILD_COREML ON)
20+
set_overridable_option(EXECUTORCH_BUILD_MPS ON)
21+
set_overridable_option(EXECUTORCH_XNNPACK_SHARED_WORKSPACE ON)
22+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_APPLE ON)
23+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER ON)
24+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_MODULE ON)
25+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_TENSOR ON)
26+
set_overridable_option(EXECUTORCH_BUILD_KERNELS_CUSTOM ON)
27+
set_overridable_option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED ON)
28+
set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
set_overridable_option(EXECUTORCH_BUILD_COREML ON)
7+
include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/apple_common.cmake)

tools/cmake/preset/macos.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/apple_common.cmake)
8+
include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/pybind.cmake)
9+
10+
set_overridable_option(EXECUTORCH_BUILD_EXECUTOR_RUNNER ON)

0 commit comments

Comments
 (0)