Skip to content

Commit 6d5f66c

Browse files
Merge remote-tracking branch 'apple/main' into katei/merge-main-2021-11-12
2 parents d10c4fa + 7afb475 commit 6d5f66c

File tree

286 files changed

+10605
-2399
lines changed

Some content is hidden

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

286 files changed

+10605
-2399
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ to track the status of our builds, please refer to our [GitHub Actions page](htt
3838
|**[Ubuntu 16.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/main/nodes/ppc64le_ubuntu_16_04.json)** | PPC64LE |[![Build Status](https://ci-external.swift.org/job/oss-swift-5.1-RA-linux-ubuntu-16.04-ppc64le/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-5.1-RA-linux-ubuntu-16.04-ppc64le)|
3939
|**[Ubuntu 18.04](https://github.com/apple/swift-community-hosted-continuous-integration/blob/main/nodes/aarch64_ubuntu_18.04_docker.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-ubuntu-18.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-ubuntu-18.04-aarch64)|
4040
|**[Ubuntu 20.04](https://github.com/apple/swift-community-hosted-continuous-integration/blob/main/nodes/aarch64_ubuntu_20.04_docker.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-ubuntu-20.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-ubuntu-20.04-aarch64)|
41+
|**[Ubuntu 20.04](https://github.com/apple/swift-community-hosted-continuous-integration/blob/main/nodes/wasm32_ubuntu_20.04.json)** | wasm32 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-20.04-webassembly/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-20.04-webassembly)|
4142
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/main/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | ARMv7 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android)|
4243
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/main/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64)|
4344
|**[Windows 2019 (VS 2017)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/main/nodes/x86_64_windows_2019.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-windows-x86_64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-windows-x86_64)|

cmake/modules/AddSwift.cmake

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,7 @@ function(add_swift_host_library name)
468468
SHARED
469469
STATIC
470470
OBJECT
471-
PURE_SWIFT
472-
HAS_LIBSWIFT)
471+
PURE_SWIFT)
473472
set(single_parameter_options)
474473
set(multiple_parameter_options
475474
LLVM_LINK_COMPONENTS)
@@ -522,12 +521,6 @@ function(add_swift_host_library name)
522521
523522
add_library(${name} ${libkind} ${ASHL_SOURCES})
524523
525-
if (ASHL_HAS_LIBSWIFT AND LIBSWIFT_BUILD_MODE)
526-
# Workaround for a linker crash related to autolinking: rdar://77839981
527-
set_property(TARGET ${name} APPEND_STRING PROPERTY
528-
LINK_FLAGS " -lobjc ")
529-
endif()
530-
531524
# Respect LLVM_COMMON_DEPENDS if it is set.
532525
#
533526
# LLVM_COMMON_DEPENDS if a global variable set in ./lib that provides targets
@@ -676,8 +669,8 @@ endfunction()
676669
function(add_libswift_module module)
677670
cmake_parse_arguments(ALSM
678671
""
679-
"DEPENDS"
680672
""
673+
"DEPENDS"
681674
${ARGN})
682675
set(sources ${ALSM_UNPARSED_ARGUMENTS})
683676
list(TRANSFORM sources PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/")
@@ -726,8 +719,8 @@ endfunction()
726719
function(add_libswift name)
727720
cmake_parse_arguments(ALS
728721
""
729-
"BOOTSTRAPPING;SWIFT_EXEC;DEPENDS"
730-
""
722+
"BOOTSTRAPPING;SWIFT_EXEC"
723+
"DEPENDS"
731724
${ARGN})
732725
733726
set(libswift_compile_options
@@ -795,7 +788,7 @@ function(add_libswift name)
795788
"-emit-module-path" "${build_dir}/${module}.swiftmodule"
796789
"-parse-as-library" ${sources}
797790
"-wmo" ${libswift_compile_options}
798-
"-I" "${CMAKE_SOURCE_DIR}/include/swift"
791+
"-I" "${SWIFT_SOURCE_DIR}/include/swift"
799792
"-I" "${build_dir}"
800793
COMMENT "Building libswift module ${module}")
801794

cmake/modules/SwiftComponents.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@
6565
# * toolchain-tools -- a subset of tools that we will install to the OSS toolchain.
6666
# * testsuite-tools -- extra tools required to run the Swift testsuite.
6767
# * toolchain-dev-tools -- install development tools useful in a shared toolchain
68+
# * llvm-toolchain-dev-tools -- install LLVM development tools useful in a shared toolchain
6869
# * dev -- headers and libraries required to use Swift compiler as a library.
6970
set(_SWIFT_DEFINED_COMPONENTS
70-
"autolink-driver;back-deployment;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;parser-lib;editor-integration;tools;testsuite-tools;toolchain-tools;toolchain-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers")
71+
"autolink-driver;back-deployment;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;parser-lib;editor-integration;tools;testsuite-tools;toolchain-tools;toolchain-dev-tools;llvm-toolchain-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers")
7172

7273
# The default install components include all of the defined components, except
7374
# for the following exceptions.
@@ -78,7 +79,7 @@ list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "dev")
7879
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-resource-dir-symlink")
7980
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-builtin-headers-in-clang-resource-dir")
8081
# This conflicts with LLVM itself when doing unified builds.
81-
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "toolchain-dev-tools")
82+
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "llvm-toolchain-dev-tools")
8283
# The sourcekit install variants are currently mutually exclusive.
8384
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
8485
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "sourcekit-inproc")

docs/RequirementMachine/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
RequirementMachine.pdf:
2+
pdflatex RequirementMachine
3+
bibtex RequirementMachine
4+
pdflatex RequirementMachine
5+
pdflatex RequirementMachine
6+
7+
clean:
8+
rm *.aux *.bbl *.blg *.idx *.ilg *.ind *.log *.out *.pdf *.toc
9+
10+
.PHONY: clean
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
@misc{se0142,
2+
author = "David Hart and Jacob Bandes-Storch and Doug Gregor",
3+
title = "{SE-0142}: Permit where clauses to constrain associated types",
4+
url = "https://github.com/apple/swift-evolution/blob/main/proposals/0142-associated-types-constraints.md",
5+
year = {2017}
6+
}
7+
@misc{se0157,
8+
author = "Doug Gregor and Erica Sadun and Austin Zheng",
9+
title = "{SE-0157}: Support recursive constraints on associated types",
10+
url = "https://github.com/apple/swift-evolution/blob/main/proposals/0157-recursive-protocol-constraints.md",
11+
year = {2017}
12+
}
13+
@misc(gensig,
14+
author = "Doug Gregor",
15+
title = "Generic Signatures",
16+
url = "https://github.com/apple/swift/blob/main/docs/ABI/GenericSignature.md",
17+
year = {2018}
18+
)
19+
@article{undecidablegroup,
20+
author = {Donald J. Collins},
21+
title = {{A simple presentation of a group with unsolvable word problem}},
22+
volume = {30},
23+
journal = {Illinois Journal of Mathematics},
24+
number = {2},
25+
publisher = {Duke University Press},
26+
pages = {230 -- 234},
27+
year = {1986},
28+
doi = {10.1215/ijm/1256044631},
29+
URL = {https://doi.org/10.1215/ijm/1256044631}
30+
}
31+
@book{andallthat, place={Cambridge}, title={Term Rewriting and All That}, DOI={10.1017/CBO9781139172752}, publisher={Cambridge University Press}, author={Baader, Franz and Nipkow, Tobias}, year={1998}}
32+
@Inbook{Knuth1983,
33+
author="Knuth, D. E.
34+
and Bendix, P. B.",
35+
editor="Siekmann, J{\"o}rg H.
36+
and Wrightson, Graham",
37+
title="Simple Word Problems in Universal Algebras",
38+
bookTitle="Automation of Reasoning: 2: Classical Papers on Computational Logic 1967--1970",
39+
year="1983",
40+
publisher="Springer Berlin Heidelberg",
41+
address="Berlin, Heidelberg",
42+
pages="342--376",
43+
isbn="978-3-642-81955-1",
44+
doi="10.1007/978-3-642-81955-1_23",
45+
url="https://doi.org/10.1007/978-3-642-81955-1_23"
46+
}
47+
@article{SQUIER1994271,
48+
title = {A finiteness condition for rewriting systems},
49+
journal = {Theoretical Computer Science},
50+
volume = {131},
51+
number = {2},
52+
pages = {271-294},
53+
year = {1994},
54+
issn = {0304-3975},
55+
doi = {https://doi.org/10.1016/0304-3975(94)90175-9},
56+
url = {https://www.sciencedirect.com/science/article/pii/0304397594901759},
57+
author = {Craig C. Squier and Friedrich Otto and Yuji Kobayashi}
58+
}
59+
@inproceedings{guiraud:hal-00818253,
60+
TITLE = {{A Homotopical Completion Procedure with Applications to Coherence of Monoids}},
61+
AUTHOR = {Guiraud, Yves and Malbos, Philippe and Mimram, Samuel},
62+
URL = {https://hal.inria.fr/hal-00818253},
63+
BOOKTITLE = {{RTA - 24th International Conference on Rewriting Techniques and Applications - 2013}},
64+
ADDRESS = {Eindhoven, Netherlands},
65+
EDITOR = {Van Raamsdonk, Femke},
66+
PUBLISHER = {{Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik}},
67+
SERIES = {Leibniz International Proceedings in Informatics (LIPIcs)},
68+
VOLUME = {21},
69+
PAGES = {223-238},
70+
YEAR = {2013},
71+
MONTH = Jun,
72+
DOI = {10.4230/LIPIcs.RTA.2013.223},
73+
HAL_ID = {hal-00818253},
74+
HAL_VERSION = {v1},
75+
}

0 commit comments

Comments
 (0)