Skip to content

Set SWIFT_STDLIB_ENABLE_VECTOR_TYPES=0 for the freestanding stdlib #41169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/stdlib/SIMD.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// REQUIRES: objc_interop
// UNSUPPORTED: freestanding

import Foundation
import StdlibUnittest
Expand Down
1 change: 1 addition & 0 deletions test/stdlib/SIMDConcreteFP.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// RUN: %line-directive %t/SIMDConcreteFP.swift -- %target-run %t/a.out
// REQUIRES: executable_test
// REQUIRES: rdar76545659
// UNSUPPORTED: freestanding

import StdlibUnittest

Expand Down
1 change: 1 addition & 0 deletions test/stdlib/SIMDConcreteIntegers.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// RUN: %target-codesign %t/a.out
// RUN: %line-directive %t/SIMDConcreteIntegers.swift -- %target-run %t/a.out
// REQUIRES: executable_test
// UNSUPPORTED: freestanding

import StdlibUnittest

Expand Down
1 change: 1 addition & 0 deletions test/stdlib/SIMDConcreteMasks.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// RUN: %target-codesign %t/a.out
// RUN: %line-directive %t/SIMDConcreteMasks.swift -- %target-run %t/a.out
// REQUIRES: executable_test
// UNSUPPORTED: freestanding

import StdlibUnittest

Expand Down
1 change: 1 addition & 0 deletions utils/build-presets.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2532,6 +2532,7 @@ swift-stdlib-lto=full
swift-stdlib-enable-prespecialization=0
swift-stdlib-passthrough-metadata-allocator=1
swift-stdlib-short-mangling-lookups=0
swift-stdlib-enable-vector-types=0
swift-stdlib-experimental-hermetic-seal-at-link=1
swift-stdlib-disable-instantiation-caches=1
swift-stdlib-has-type-printing=0
Expand Down
2 changes: 2 additions & 0 deletions utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ KNOWN_SETTINGS=(
swift-stdlib-enable-prespecialization "" "whether stdlib should be built with generic metadata prespecialization enabled, defaults to true on Darwin and Linux, false otherwise"
swift-stdlib-passthrough-metadata-allocator "0" "whether stdlib should be built without a custom implementation of MetadataAllocator, relying on malloc+free instead"
swift-stdlib-short-mangling-lookups "1" "whether to build stdlib with fast-path context descriptor lookups based on well-known short manglings"
swift-stdlib-enable-vector-types "1" "whether to build stdlib with support for SIMD and vector types"
swift-stdlib-experimental-hermetic-seal-at-link "0" "whether stdlib should be built with -experimental-hermetic-seal-at-link"
swift-stdlib-disable-instantiation-caches "0" "whether to build stdlib with -disable-preallocated-instantiation-caches"
swift-stdlib-has-type-printing "1" "whether stdlib should support printing user-friendly type name as strings at runtime"
Expand Down Expand Up @@ -2009,6 +2010,7 @@ for host in "${ALL_HOSTS[@]}"; do
-DSWIFT_STDLIB_ENABLE_LTO:STRING="${SWIFT_STDLIB_LTO}"
-DSWIFT_STDLIB_PASSTHROUGH_METADATA_ALLOCATOR:BOOL=$(true_false "${SWIFT_STDLIB_PASSTHROUGH_METADATA_ALLOCATOR}")
-DSWIFT_STDLIB_SHORT_MANGLING_LOOKUPS:BOOL=$(true_false "${SWIFT_STDLIB_SHORT_MANGLING_LOOKUPS}")
-DSWIFT_STDLIB_ENABLE_VECTOR_TYPES:BOOL=$(true_false "${SWIFT_STDLIB_ENABLE_VECTOR_TYPES}")
-DSWIFT_STDLIB_HAS_TYPE_PRINTING:BOOL=$(true_false "${SWIFT_STDLIB_HAS_TYPE_PRINTING}")
-DSWIFT_STDLIB_EXPERIMENTAL_HERMETIC_SEAL_AT_LINK:BOOL=$(true_false "${SWIFT_STDLIB_EXPERIMENTAL_HERMETIC_SEAL_AT_LINK}")
-DSWIFT_STDLIB_DISABLE_INSTANTIATION_CACHES:BOOL=$(true_false "${SWIFT_STDLIB_DISABLE_INSTANTIATION_CACHES}")
Expand Down