Skip to content

Commit

Permalink
Merge pull request #23 from dsp-testing/alexdenisov/swift-5.10
Browse files Browse the repository at this point in the history
Swift 5.10
  • Loading branch information
AlexDenisov authored Mar 21, 2024
2 parents 099b557 + b3495a5 commit efacbc9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ find_package(Clang REQUIRED CONFIG)
find_package(Swift REQUIRED CONFIG)
find_package(SwiftSyntax REQUIRED CONFIG)

set(THREADS_PREFER_PTHREAD_FLAG YES)
include(FindThreads)

message("Using LLVM_CONFIG: ${Swift_CONFIG}")
message("Using Clang_CONFIG: ${LLVM_CONFIG}")
message("Using Swift_CONFIG: ${Clang_CONFIG}")
Expand All @@ -17,6 +20,7 @@ set (CODEQL_SWIFT_VERSION_MAJOR ${SWIFT_VERSION_MAJOR})
set (CODEQL_SWIFT_VERSION_MINOR ${SWIFT_VERSION_MINOR})
set (CODEQL_SWIFT_VERSION_PATCH ${SWIFT_VERSION_PATCH})

# TODO: these are now upstreamed
configure_file(${CMAKE_SOURCE_DIR}/CodeQLSwiftVersion.h.in
${SWIFT_BINARY_DIR}/include/swift/CodeQLSwiftVersion.h)

Expand Down
15 changes: 0 additions & 15 deletions patches/swift/expose-swift-version.patch

This file was deleted.

3 changes: 1 addition & 2 deletions pkg_swift_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ def main(opts):
os.mkdir(tmp)
llvm_build_tree = next(opts.build_tree.glob("llvm-*"))
swift_build_tree = next(opts.build_tree.glob("swift-*"))
earlyswiftsyntax_build_tree = next(opts.build_tree.glob("earlyswiftsyntax-*"))
configured = configure_dummy_project(tmp, prefixes=[llvm_build_tree, swift_build_tree,
earlyswiftsyntax_build_tree / "cmake" / "modules"])
swift_build_tree / 'cmake' / 'modules'])
libs = get_libs(configured)

exported = tmp / "exported"
Expand Down
1 change: 0 additions & 1 deletion swift-build-presets
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ skip-test-sourcekit-lsp
skip-test-playgroundsupport
skip-test-skstresstester
skip-test-swiftformat
skip-test-swiftevolve
skip-test-toolchain-benchmarks
skip-test-swift-inspect
skip-test-swift
Expand Down

0 comments on commit efacbc9

Please sign in to comment.