Skip to content

Commit cdc6222

Browse files
author
Alex Denisov
committed
Strip patch
1 parent a2905df commit cdc6222

File tree

2 files changed

+2
-39
lines changed

2 files changed

+2
-39
lines changed

.swift-build-presets renamed to swift-build-presets

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
release
33
build-subdir=codeql
44

5+
llvm-targets-to-build=X86;ARM;AArch64
6+
57
skip-ios
68
skip-tvos
79
skip-watchos

swift-build-system.patch

-39
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index bc9b6790922..2543fa1ae37 100644
3-
--- a/CMakeLists.txt
4-
+++ b/CMakeLists.txt
5-
@@ -966,12 +966,12 @@ if(SWIFT_PARALLEL_LINK_JOBS)
6-
endif()
7-
endif()
8-
9-
-# Set the CMAKE_OSX_* variables in a way that minimizes conflicts.
10-
-if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND NOT CMAKE_CROSSCOMPILING)
11-
- set(CMAKE_OSX_SYSROOT "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_PATH}")
12-
- set(CMAKE_OSX_ARCHITECTURES "")
13-
- set(CMAKE_OSX_DEPLOYMENT_TARGET "")
14-
-endif()
15-
+# # Set the CMAKE_OSX_* variables in a way that minimizes conflicts.
16-
+# if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND NOT CMAKE_CROSSCOMPILING)
17-
+# set(CMAKE_OSX_SYSROOT "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_PATH}")
18-
+# set(CMAKE_OSX_ARCHITECTURES "")
19-
+# set(CMAKE_OSX_DEPLOYMENT_TARGET "")
20-
+# endif()
21-
22-
if(SWIFT_INCLUDE_TOOLS)
23-
message(STATUS "Building host Swift tools for ${SWIFT_HOST_VARIANT_SDK} ${SWIFT_HOST_VARIANT_ARCH}")
241
diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt
252
index 8046ea79966..4c2c040a573 100644
263
--- a/cmake/modules/CMakeLists.txt
@@ -119,19 +96,3 @@ index 26ada5dc9ac..f5e98328616 100644
11996
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
12097

12198
set(LLVM_MAIN_SRC_DIR "${LLVM_BUILD_MAIN_SRC_DIR}"
122-
diff --git a/utils/build-script b/utils/build-script
123-
index 4440554af7e..8fd83951c4e 100755
124-
--- a/utils/build-script
125-
+++ b/utils/build-script
126-
@@ -354,6 +354,11 @@ def apply_default_arguments(toolchain, args):
127-
args.android = True
128-
args.build_android = False
129-
130-
+ args.extra_cmake_options += [
131-
+ '-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64'
132-
+ ]
133-
+
134-
+
135-
# Include the Darwin supported architectures in the CMake options.
136-
if args.swift_darwin_supported_archs:
137-
args.extra_cmake_options.append(

0 commit comments

Comments
 (0)