Skip to content

Commit 7944635

Browse files
authored
Merge pull request #61898 from CodaFi/i-write-syns-not-tragedies
2 parents 2a8b2ce + 3a73bef commit 7944635

Some content is hidden

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

52 files changed

+44
-1759
lines changed

.flake8

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ filename =
1616

1717
./utils/80+-check,
1818
./utils/backtrace-check,
19-
./utils/build-parser-lib,
2019
./utils/build-script,
2120
./utils/check-incremental,
2221
./utils/coverage/coverage-build-db,

CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -572,13 +572,6 @@ option(SWIFT_ENABLE_GLOBAL_ISEL_ARM64
572572
"Enable global isel on arm64"
573573
FALSE)
574574

575-
cmake_dependent_option(SWIFT_BUILD_SYNTAXPARSERLIB
576-
"Build the Swift Syntax Parser library" TRUE
577-
"SWIFT_ENABLE_DISPATCH" FALSE)
578-
cmake_dependent_option(SWIFT_BUILD_ONLY_SYNTAXPARSERLIB
579-
"Only build the Swift Syntax Parser library" FALSE
580-
"SWIFT_BUILD_SYNTAXPARSERLIB" FALSE)
581-
582575
cmake_dependent_option(SWIFT_BUILD_SOURCEKIT
583576
"Build SourceKit" TRUE
584577
"SWIFT_ENABLE_DISPATCH" FALSE)
@@ -637,13 +630,13 @@ set(SWIFT_BUILD_HOST_DISPATCH FALSE)
637630
if(SWIFT_ENABLE_DISPATCH AND NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
638631
# Only build libdispatch for the host if the host tools are being built and
639632
# specifically if these two libraries that depend on it are built.
640-
if(SWIFT_INCLUDE_TOOLS AND (SWIFT_BUILD_SYNTAXPARSERLIB OR SWIFT_BUILD_SOURCEKIT))
633+
if(SWIFT_INCLUDE_TOOLS AND SWIFT_BUILD_SOURCEKIT)
641634
set(SWIFT_BUILD_HOST_DISPATCH TRUE)
642635
endif()
643636

644637
if(SWIFT_BUILD_HOST_DISPATCH OR SWIFT_CONCURRENCY_USES_DISPATCH)
645638
if(NOT EXISTS "${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}")
646-
message(SEND_ERROR "SyntaxParserLib, SourceKit, and concurrency require libdispatch on non-Darwin hosts. Please specify SWIFT_PATH_TO_LIBDISPATCH_SOURCE")
639+
message(SEND_ERROR "SourceKit and concurrency require libdispatch on non-Darwin hosts. Please specify SWIFT_PATH_TO_LIBDISPATCH_SOURCE")
647640
endif()
648641
endif()
649642
endif()

cmake/caches/Linux-x86_64.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ set(SWIFT_INSTALL_COMPONENTS
148148
sourcekit-inproc
149149
swift-remote-mirror
150150
swift-remote-mirror-headers
151-
parser-lib
152151
CACHE STRING "")
153152

154153
set(LLVM_DISTRIBUTION_COMPONENTS

cmake/caches/Runtime-Android-aarch64.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "")
1313
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "")
1414

1515
# NOTE(compnerd) these are part of the toolchain, not the runtime.
16-
set(SWIFT_BUILD_SYNTAXPARSERLIB NO CACHE BOOL "")
1716
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "")
1817

1918
# NOTE(compnerd) build with the compiler specified, not a just built compiler.

cmake/caches/Runtime-Android-armv7.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "")
1313
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "")
1414

1515
# NOTE(compnerd) these are part of the toolchain, not the runtime.
16-
set(SWIFT_BUILD_SYNTAXPARSERLIB NO CACHE BOOL "")
1716
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "")
1817

1918
# NOTE(compnerd) build with the compiler specified, not a just built compiler.

cmake/caches/Runtime-Linux-x86_64.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "")
1313
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "")
1414

1515
# NOTE(compnerd) these are part of the toolchain, not the runtime.
16-
set(SWIFT_BUILD_SYNTAXPARSERLIB NO CACHE BOOL "")
1716
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "")
1817

1918
# NOTE(compnerd) build with the compiler specified, not a just built compiler.

cmake/caches/Runtime-WASI-wasm32.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ set(SWIFT_INCLUDE_TOOLS NO CACHE BOOL "")
99
set(SWIFT_INCLUDE_TESTS TRUE CACHE BOOL "")
1010
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "")
1111

12-
set(SWIFT_BUILD_SYNTAXPARSERLIB NO CACHE BOOL "")
1312
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "")
1413
set(SWIFT_ENABLE_SOURCEKIT_TESTS NO CACHE BOOL "")
1514

cmake/caches/Runtime-Windows-aarch64.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "")
1313
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "")
1414

1515
# NOTE(compnerd) these are part of the toolchain, not the runtime.
16-
set(SWIFT_BUILD_SYNTAXPARSERLIB NO CACHE BOOL "")
1716
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "")
1817

1918
# NOTE(compnerd) build with the compiler specified, not a just built compiler.

cmake/caches/Runtime-Windows-i686.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "")
1313
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "")
1414

1515
# NOTE(compnerd) these are part of the toolchain, not the runtime.
16-
set(SWIFT_BUILD_SYNTAXPARSERLIB NO CACHE BOOL "")
1716
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "")
1817

1918
# NOTE(compnerd) build with the compiler specified, not a just built compiler.

cmake/caches/Runtime-Windows-x86_64.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "")
1313
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "")
1414

1515
# NOTE(compnerd) these are part of the toolchain, not the runtime.
16-
set(SWIFT_BUILD_SYNTAXPARSERLIB NO CACHE BOOL "")
1716
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "")
1817

1918
# NOTE(compnerd) build with the compiler specified, not a just built compiler.

cmake/caches/Windows-arm64.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ set(SWIFT_INSTALL_COMPONENTS
149149
sourcekit-inproc
150150
swift-remote-mirror
151151
swift-remote-mirror-headers
152-
parser-lib
153152
CACHE STRING "")
154153

155154
set(LLVM_DISTRIBUTION_COMPONENTS

cmake/caches/Windows-x86_64.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ set(SWIFT_INSTALL_COMPONENTS
149149
sourcekit-inproc
150150
swift-remote-mirror
151151
swift-remote-mirror-headers
152-
parser-lib
153152
CACHE STRING "")
154153

155154
set(LLVM_DISTRIBUTION_COMPONENTS

cmake/modules/SwiftComponents.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@
6464
# Swift code.
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.
67-
# * parser-lib -- Build the syntax parser library used by SwiftSyntax.
6867
# * static-mirror-lib -- Build the static mirror library used by SwiftStaticMirror.
6968
# * toolchain-dev-tools -- install development tools useful in a shared toolchain
7069
# * llvm-toolchain-dev-tools -- install LLVM development tools useful in a shared toolchain
7170
# * dev -- headers and libraries required to use Swift compiler as a library.
7271
set(_SWIFT_DEFINED_COMPONENTS
73-
"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;static-mirror-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")
72+
"autolink-driver;back-deployment;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;static-mirror-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")
7473

7574
# The default install components include all of the defined components, except
7675
# for the following exceptions.

docs/OpenBSD.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ These options are:
6868
* `--skip-build-clang-tools-extra` and `--skip-build-compiler-rt`: to ensure LLVM builds cleanly,
6969
* `--extra-cmake-options=`
7070
* `-DCMAKE_DISABLE_FIND_PACKAGE_Backtrace=TRUE,-DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=TRUE,-DLLVM_VERSION_SUFFIX=''`: to ensure LLVM builds cleanly,
71-
* `-DSWIFT_ENABLE_DISPATCH=FALSE,-DSWIFT_BUILD_SOURCEKIT=OFF,-DSWIFT_BUILD_SYNTAXPARSERLIB=OFF,-DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=OFF,-DSWIFT_IMPLICIT_CONCURRENCY_IMPORT=OFF,-DSWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED=OFF`: to ensure Swift does not attempt to build libdispatch, which is not yet supported on OpenBSD,
71+
* `-DSWIFT_ENABLE_DISPATCH=FALSE,-DSWIFT_BUILD_SOURCEKIT=OFF,-DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=OFF,-DSWIFT_IMPLICIT_CONCURRENCY_IMPORT=OFF,-DSWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED=OFF`: to ensure Swift does not attempt to build libdispatch, which is not yet supported on OpenBSD,
7272
* `-DSWIFT_USE_LINKER=lld`: to specify that `lld` should be used over `gold`,
7373
* `-DCMAKE_INSTALL_DIR=/usr/local"`: to set the correct platform install directory.
7474

@@ -84,7 +84,6 @@ $ ./utils/build-script \
8484
-DLLVM_VERSION_SUFFIX='',\
8585
-DSWIFT_ENABLE_DISPATCH=OFF,\
8686
-DSWIFT_BUILD_SOURCEKIT=OFF,\
87-
-DSWIFT_BUILD_SYNTAXPARSERLIB=OFF,\
8887
-DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=OFF,\
8988
-DSWIFT_IMPLICIT_CONCURRENCY_IMPORT=OFF,\
9089
-DSWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED=OFF,\

include/swift-c/SyntaxParser/SwiftSyntaxCDataTypes.h

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)