Skip to content

Commit 72be2ca

Browse files
authored
Merge pull request #917 from swiftwasm/master
swiftwasm from master
2 parents 160c5ba + bab23d8 commit 72be2ca

File tree

176 files changed

+2628
-953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+2628
-953
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ See [docs/Testing.md](docs/Testing.md), in particular the section on [lit.py](do
338338

339339
Be sure to look through the [docs](https://github.com/apple/swift/tree/master/docs)
340340
directory for more information about the compiler. In particular, the documents
341-
titled [Debugging the Swift Compiler](docs/DebuggingTheCompiler.rst) and
341+
titled [Debugging the Swift Compiler](docs/DebuggingTheCompiler.md) and
342342
[Continuous Integration for Swift](docs/ContinuousIntegration.md) are very
343343
helpful to understand before submitting your first PR.
344344

benchmark/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ The following build options are available:
7474
The following build targets are available:
7575

7676
* `swift-benchmark-macosx-x86_64`
77+
* `swift-benchmark-iphoneos-arm64e`
7778
* `swift-benchmark-iphoneos-arm64`
7879
* `swift-benchmark-iphoneos-armv7`
7980
* `swift-benchmark-appletvos-arm64`

cmake/modules/AddSwift.cmake

+3-25
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ function(_add_host_variant_c_compile_link_flags)
8989
""
9090
${ARGN})
9191

92-
get_maccatalyst_build_flavor(maccatalyst_build_flavor
93-
"${SWFIT_HOST_VARIANT_SDK}" "")
94-
9592
set(result ${${CFLAGS_RESULT_VAR_NAME}})
9693

9794
is_darwin_based_sdk("${SWIFT_HOST_VARIANT_SDK}" IS_DARWIN)
@@ -102,12 +99,9 @@ function(_add_host_variant_c_compile_link_flags)
10299
# MSVC, clang-cl, gcc don't understand -target.
103100
if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT SWIFT_COMPILER_IS_MSVC_LIKE)
104101
get_target_triple(target target_variant "${SWIFT_HOST_VARIANT_SDK}" "${SWIFT_HOST_VARIANT_ARCH}"
105-
MACCATALYST_BUILD_FLAVOR "${maccatalyst_build_flavor}"
102+
MACCATALYST_BUILD_FLAVOR ""
106103
DEPLOYMENT_VERSION "${DEPLOYMENT_VERSION}")
107104
list(APPEND result "-target" "${target}")
108-
if(target_variant)
109-
list(APPEND result "-target-variant" "${target_variant}")
110-
endif()
111105
endif()
112106

113107
set(_sysroot
@@ -133,21 +127,8 @@ function(_add_host_variant_c_compile_link_flags)
133127
# side effects are introduced should a new search path be added.
134128
list(APPEND result
135129
"-arch" "${SWIFT_HOST_VARIANT_ARCH}"
136-
"-F${SWIFT_SDK_${SWIFT_HOST_VARIANT_ARCH}_PATH}/../../../Developer/Library/Frameworks")
137-
138-
set(add_explicit_version TRUE)
139-
140-
# iOS-like and zippered libraries get their deployment version from the
141-
# target triple
142-
if(maccatalyst_build_flavor STREQUAL "ios-like" OR
143-
maccatalyst_build_flavor STREQUAL "zippered")
144-
set(add_explicit_version FALSE)
145-
endif()
146-
147-
if(add_explicit_version)
148-
list(APPEND result
149-
"-m${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_VERSION_MIN_NAME}-version-min=${DEPLOYMENT_VERSION}")
150-
endif()
130+
"-F${SWIFT_SDK_${SWIFT_HOST_VARIANT_ARCH}_PATH}/../../../Developer/Library/Frameworks"
131+
"-m${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_VERSION_MIN_NAME}-version-min=${DEPLOYMENT_VERSION}")
151132
endif()
152133

153134
if(CFLAGS_ANALYZE_CODE_COVERAGE)
@@ -434,9 +415,6 @@ function(_add_host_variant_link_flags target)
434415
"SHELL:-Xlinker -dead_strip")
435416
endif()
436417
endif()
437-
438-
get_maccatalyst_build_flavor(maccatalyst_build_flavor
439-
"${SWIFT_HOST_VARIANT_SDK}" "")
440418
endfunction()
441419

442420
# Add a single variant of a new Swift library.

docs/CompilerPerformance.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ The set of jobs that are run, and the way they spend their time, is itself
8383
highly dependent on **compilation modes**. Information concerning those modes
8484
that's relevant to compilation performance is recounted in the following
8585
section; for more details on the driver, see [the driver docs](Driver.md), as
86-
well as docs on [driver internals](DriverInternals.rst)
87-
and [driver parseable output](DriverParseableOutput.rst).
86+
well as docs on [driver internals](DriverInternals.md)
87+
and [driver parseable output](DriverParseableOutput.md).
8888

8989
After discussing compilation modes in the following section, we'll also touch on
9090
large-scale variation in workload that can occur _without_ obvious hotspots, in
@@ -1143,7 +1143,7 @@ driver. These files contain the driver's summary-view of the dependencies
11431143
between entities defined and referenced in each source file; it is from these
11441144
files that the driver decides when a file "needs" to be rebuilt because it
11451145
depends on another file that needs to be rebuilt, and so on transitively. The
1146-
file format is [documented here](DependencyAnalysis.rst).
1146+
file format is [documented here](DependencyAnalysis.md).
11471147
11481148
### Finding areas in need of general improvement
11491149

0 commit comments

Comments
 (0)