Skip to content

Commit 11cf4ff

Browse files
committed
[build] Enable noncopyable generics; disable anything that prevents toolchain builds from succeeding
1 parent 489c953 commit 11cf4ff

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

benchmark/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ include(AddSwiftBenchmarkSuite)
2525
# Declarative Description of Benchmarks
2626
#===-----------------------------------------------------------------------===#
2727

28-
set(SWIFT_BENCH_MODULES
28+
set(SWIFT_BENCH_MODULES)
29+
30+
# FIXME(NCG): Temporarily disabled
31+
set(SWIFT_BENCH_MODULES_DISABLED
2932
single-source/Ackermann
3033
single-source/AngryPhonebook
3134
single-source/AnyHashableWithAClass
@@ -212,7 +215,9 @@ set(SWIFT_BENCH_MODULES
212215
cxx-source/ReadAccessor
213216
)
214217

215-
set(SWIFT_MULTISOURCE_SWIFT_BENCHES
218+
set(SWIFT_MULTISOURCE_SWIFT_BENCHES)
219+
# FIXME(NCG): Temporarily disabled
220+
set(SWIFT_MULTISOURCE_SWIFT_BENCHES_DISABLED)
216221
multi-source/PrimsSplit
217222
)
218223

benchmark/utils/main.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
import TestsUtils
1616
import DriverUtils
17+
18+
#if false // FIXME(NCG): Temporarily disabled to enable dev toolchain generation
1719
import Ackermann
1820
import AngryPhonebook
1921
import AnyHashableWithAClass
@@ -404,5 +406,6 @@ register(UTF16Decode.benchmarks)
404406
register(Walsh.benchmarks)
405407
register(WordCount.benchmarks)
406408
register(XorLoop.benchmarks)
409+
#endif
407410

408411
main()

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ function(_compile_swift_files
610610
if(SWIFT_ENABLE_EXPERIMENTAL_NONCOPYABLE_GENERICS)
611611
list(APPEND swift_flags "-enable-experimental-feature" "NoncopyableGenerics")
612612
list(APPEND swift_flags "-Xfrontend" "-enable-experimental-associated-type-inference")
613+
list(APPEND swift_flags "-Xfrontend" "-disable-round-trip-debug-types") # FIXME(NCG): temporary until we fix mangling!
613614
endif()
614615

615616
if (SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE)

utils/build-presets.ini

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,10 @@ build-swift-stdlib-unittest-extra
13031303
# Don't build the benchmarks
13041304
skip-build-benchmarks
13051305

1306+
# FIXME(NCG): Temporary additions for dev toolchain generation
1307+
enable-experimental-noncopyable-generics=1
1308+
bootstrapping=hosttools
1309+
13061310
# When building for an Xcode toolchain, don't copy the Swift Resource/ directory
13071311
# into the LLDB.framework. LLDB.framework will be installed alongside a Swift
13081312
# compiler, so LLDB should use its resource directory directly.
@@ -1339,10 +1343,12 @@ install-prefix=%(install_toolchain_dir)s/usr
13391343
# Executes the lit tests for the installable package that is created
13401344
# Assumes the swift-integration-tests repo is checked out
13411345

1342-
test-installable-package
1346+
# FIXME(NCG): Temporarily removed for dev toolchain generation
1347+
#test-installable-package
13431348

13441349
# Make sure that we can build the benchmarks with swiftpm against the toolchain
1345-
toolchain-benchmarks
1350+
# FIXME(NCG): Temporarily removed for dev toolchain generation
1351+
#toolchain-benchmarks
13461352

13471353
# If someone uses this for incremental builds, force reconfiguration.
13481354
reconfigure
@@ -1386,7 +1392,7 @@ darwin-toolchain-require-use-os-runtime=1
13861392
[preset: buildbot_osx_package]
13871393
mixin-preset=
13881394
mixin_osx_package_base
1389-
mixin_osx_package_test
1395+
#mixin_osx_package_test FIXME(NCG): Temporarily removed to allow dev toolchain generation
13901396
mixin_lightweight_assertions,no-stdlib-asserts
13911397

13921398
# SKIP LLDB TESTS (67923799)
@@ -1405,7 +1411,7 @@ mixin-preset=
14051411
[preset: buildbot_osx_package,no_assertions]
14061412
mixin-preset=
14071413
mixin_osx_package_base
1408-
mixin_osx_package_test
1414+
#mixin_osx_package_test FIXME(NCG): Temporarily removed to allow dev toolchain generation
14091415

14101416
no-assertions
14111417

0 commit comments

Comments
 (0)