File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,10 @@ option(SWIFT_STDLIB_EXPERIMENTAL_HERMETIC_SEAL_AT_LINK
168
168
"Should stdlib be built with -experimental-hermetic-seal-at-link"
169
169
FALSE )
170
170
171
+ option (SWIFT_STDLIB_EXPERIMENTAL_NONCOPYABLE_GENERICS
172
+ "Should stdlib be built with -experimental-feature NoncopyableGenerics"
173
+ FALSE )
174
+
171
175
option (SWIFT_STDLIB_PASSTHROUGH_METADATA_ALLOCATOR
172
176
"Build stdlib without a custom implementation of MetadataAllocator, relying on malloc+free instead."
173
177
FALSE )
Original file line number Diff line number Diff line change @@ -578,6 +578,10 @@ function(_compile_swift_files
578
578
list (APPEND swift_flags "-experimental-hermetic-seal-at-link" )
579
579
endif ()
580
580
581
+ if (SWIFT_STDLIB_EXPERIMENTAL_NONCOPYABLE_GENERICS )
582
+ list (APPEND swift_flags "-enable-experimental-feature" "NoncopyableGenerics" )
583
+ endif ()
584
+
581
585
if (SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES )
582
586
list (APPEND swift_flags "-Xfrontend" "-enable-relative-protocol-witness-tables" )
583
587
list (APPEND swift_flags "-Xfrontend" "-swift-async-frame-pointer=never" )
@@ -1181,4 +1185,3 @@ function(_compile_swift_files
1181
1185
LANGUAGE C
1182
1186
OBJECT_DEPENDS "${source_files} " )
1183
1187
endfunction ()
1184
-
Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ KNOWN_SETTINGS=(
236
236
swift-stdlib-short-mangling-lookups " 1" " whether to build stdlib with fast-path context descriptor lookups based on well-known short manglings"
237
237
swift-stdlib-enable-vector-types " 1" " whether to build stdlib with support for SIMD and vector types"
238
238
swift-stdlib-experimental-hermetic-seal-at-link " 0" " whether stdlib should be built with -experimental-hermetic-seal-at-link"
239
+ swift-stdlib-experimental-noncopyable-generics " 0" " whether stdlib should be built with -enable-experimental-feature NoncopyableGenerics"
239
240
swift-stdlib-disable-instantiation-caches " 0" " whether to build stdlib with -disable-preallocated-instantiation-caches"
240
241
swift-stdlib-has-type-printing " 1" " whether stdlib should support printing user-friendly type name as strings at runtime"
241
242
swift-stdlib-trap-function " " " Name of function to call instead of emitting a trap instruction"
@@ -1851,6 +1852,7 @@ for host in "${ALL_HOSTS[@]}"; do
1851
1852
-DSWIFT_STDLIB_HAS_TYPE_PRINTING:BOOL=$( true_false " ${SWIFT_STDLIB_HAS_TYPE_PRINTING} " )
1852
1853
-DSWIFT_STDLIB_TRAP_FUNCTION:STRING=" ${SWIFT_STDLIB_TRAP_FUNCTION} "
1853
1854
-DSWIFT_STDLIB_EXPERIMENTAL_HERMETIC_SEAL_AT_LINK:BOOL=$( true_false " ${SWIFT_STDLIB_EXPERIMENTAL_HERMETIC_SEAL_AT_LINK} " )
1855
+ -DSWIFT_STDLIB_EXPERIMENTAL_NONCOPYABLE_GENERICS:BOOL=$( true_false " ${SWIFT_STDLIB_EXPERIMENTAL_NONCOPYABLE_GENERICS} " )
1854
1856
-DSWIFT_STDLIB_DISABLE_INSTANTIATION_CACHES:BOOL=$( true_false " ${SWIFT_STDLIB_DISABLE_INSTANTIATION_CACHES} " )
1855
1857
-DSWIFT_STDLIB_REFLECTION_METADATA:STRING=" ${SWIFT_STDLIB_REFLECTION_METADATA} "
1856
1858
-DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING=" ${native_llvm_tools_path} "
You can’t perform that action at this time.
0 commit comments