Skip to content

Commit d295733

Browse files
authored
Set SWIFT_STDLIB_ENABLE_VECTOR_TYPES=0 for the freestanding stdlib (#41169)
1 parent 932c45d commit d295733

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

test/stdlib/SIMD.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
33
// REQUIRES: objc_interop
4+
// UNSUPPORTED: freestanding
45

56
import Foundation
67
import StdlibUnittest

test/stdlib/SIMDConcreteFP.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// RUN: %line-directive %t/SIMDConcreteFP.swift -- %target-run %t/a.out
1717
// REQUIRES: executable_test
1818
// REQUIRES: rdar76545659
19+
// UNSUPPORTED: freestanding
1920

2021
import StdlibUnittest
2122

test/stdlib/SIMDConcreteIntegers.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// RUN: %target-codesign %t/a.out
1616
// RUN: %line-directive %t/SIMDConcreteIntegers.swift -- %target-run %t/a.out
1717
// REQUIRES: executable_test
18+
// UNSUPPORTED: freestanding
1819

1920
import StdlibUnittest
2021

test/stdlib/SIMDConcreteMasks.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// RUN: %target-codesign %t/a.out
1616
// RUN: %line-directive %t/SIMDConcreteMasks.swift -- %target-run %t/a.out
1717
// REQUIRES: executable_test
18+
// UNSUPPORTED: freestanding
1819

1920
import StdlibUnittest
2021

utils/build-presets.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,7 @@ swift-stdlib-lto=full
25322532
swift-stdlib-enable-prespecialization=0
25332533
swift-stdlib-passthrough-metadata-allocator=1
25342534
swift-stdlib-short-mangling-lookups=0
2535+
swift-stdlib-enable-vector-types=0
25352536
swift-stdlib-experimental-hermetic-seal-at-link=1
25362537
swift-stdlib-disable-instantiation-caches=1
25372538
swift-stdlib-has-type-printing=0

utils/build-script-impl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ KNOWN_SETTINGS=(
218218
swift-stdlib-enable-prespecialization "" "whether stdlib should be built with generic metadata prespecialization enabled, defaults to true on Darwin and Linux, false otherwise"
219219
swift-stdlib-passthrough-metadata-allocator "0" "whether stdlib should be built without a custom implementation of MetadataAllocator, relying on malloc+free instead"
220220
swift-stdlib-short-mangling-lookups "1" "whether to build stdlib with fast-path context descriptor lookups based on well-known short manglings"
221+
swift-stdlib-enable-vector-types "1" "whether to build stdlib with support for SIMD and vector types"
221222
swift-stdlib-experimental-hermetic-seal-at-link "0" "whether stdlib should be built with -experimental-hermetic-seal-at-link"
222223
swift-stdlib-disable-instantiation-caches "0" "whether to build stdlib with -disable-preallocated-instantiation-caches"
223224
swift-stdlib-has-type-printing "1" "whether stdlib should support printing user-friendly type name as strings at runtime"
@@ -2009,6 +2010,7 @@ for host in "${ALL_HOSTS[@]}"; do
20092010
-DSWIFT_STDLIB_ENABLE_LTO:STRING="${SWIFT_STDLIB_LTO}"
20102011
-DSWIFT_STDLIB_PASSTHROUGH_METADATA_ALLOCATOR:BOOL=$(true_false "${SWIFT_STDLIB_PASSTHROUGH_METADATA_ALLOCATOR}")
20112012
-DSWIFT_STDLIB_SHORT_MANGLING_LOOKUPS:BOOL=$(true_false "${SWIFT_STDLIB_SHORT_MANGLING_LOOKUPS}")
2013+
-DSWIFT_STDLIB_ENABLE_VECTOR_TYPES:BOOL=$(true_false "${SWIFT_STDLIB_ENABLE_VECTOR_TYPES}")
20122014
-DSWIFT_STDLIB_HAS_TYPE_PRINTING:BOOL=$(true_false "${SWIFT_STDLIB_HAS_TYPE_PRINTING}")
20132015
-DSWIFT_STDLIB_EXPERIMENTAL_HERMETIC_SEAL_AT_LINK:BOOL=$(true_false "${SWIFT_STDLIB_EXPERIMENTAL_HERMETIC_SEAL_AT_LINK}")
20142016
-DSWIFT_STDLIB_DISABLE_INSTANTIATION_CACHES:BOOL=$(true_false "${SWIFT_STDLIB_DISABLE_INSTANTIATION_CACHES}")

0 commit comments

Comments
 (0)