From ab5c4f033bf29d20a36a2c6beedfd3fdbe39d6aa Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Mon, 22 Apr 2024 01:40:15 +0900 Subject: [PATCH] fix: follow the recent changes of the compiler --- Benchmarks/Package.swift | 1 + Package.swift | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Benchmarks/Package.swift b/Benchmarks/Package.swift index 46c1014..0aebf6c 100644 --- a/Benchmarks/Package.swift +++ b/Benchmarks/Package.swift @@ -20,6 +20,7 @@ let package = Package( swiftSettings: [ .unsafeFlags(["-Xfrontend", "-warn-long-function-bodies=100"], .when(configuration: .debug)), .unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=100"], .when(configuration: .debug)), + .enableUpcomingFeature("InternalImportsByDefault"), ], plugins: [ .plugin(name: "BenchmarkPlugin", package: "package-benchmark") diff --git a/Package.swift b/Package.swift index 4c34823..d73e166 100644 --- a/Package.swift +++ b/Package.swift @@ -35,6 +35,7 @@ let package = Package( .unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=100"], .when(configuration: .debug)), .enableExperimentalFeature("CodeItemMacros"), .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("InternalImportsByDefault"), ] ), .target( @@ -46,6 +47,7 @@ let package = Package( .unsafeFlags(["-Xfrontend", "-warn-long-function-bodies=100"], .when(configuration: .debug)), .unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=100"], .when(configuration: .debug)), .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("InternalImportsByDefault"), ] ), .macro( @@ -58,12 +60,14 @@ let package = Package( .unsafeFlags(["-Xfrontend", "-warn-long-function-bodies=100"], .when(configuration: .debug)), .unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=100"], .when(configuration: .debug)), .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("InternalImportsByDefault"), ] ), .target( name: "HTMLEntities", swiftSettings: [ - .enableUpcomingFeature("ExistentialAny") + .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("InternalImportsByDefault"), ] ), .testTarget( @@ -101,7 +105,8 @@ let package = Package( .process("Resources/html5lib-tests/tokenizer/domjs.test"), ], swiftSettings: [ - .enableUpcomingFeature("ExistentialAny") + .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("InternalImportsByDefault"), ] ), .testTarget( @@ -114,7 +119,8 @@ let package = Package( .process("Resources") ], swiftSettings: [ - .enableUpcomingFeature("ExistentialAny") + .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("InternalImportsByDefault"), ] ), ],