Skip to content

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Oct 10, 2025

To achieve so, allow each item in
SWIFT_EMBEDDED_STDLIB_EXTRA_TARGET_TRIPLES to append a SDK path after a @ character, e.g.

-DSWIFT_EMBEDDED_STDLIB_EXTRA_TARGET_TRIPLES=aarch64-vendor-os@/usr/local/aarch64-vendor-os-sdk;aaarch-vendor-anotheros

PIggyback a fix to correctly support triples that specify an environment.

Addresses rdar://162368529

To achieve so, allow each item in
`SWIFT_EMBEDDED_STDLIB_EXTRA_TARGET_TRIPLES` to append a SDK path after
a @ character, e.g.

```
-DSWIFT_EMBEDDED_STDLIB_EXTRA_TARGET_TRIPLES=aarch64-vendor-os@/usr/local/aarch64-vendor-os-sdk;aaarch-vendor-anotheros
```

Addresses rdar://162368529
@edymtt edymtt requested review from a team and ktoso as code owners October 10, 2025 17:02
@edymtt
Copy link
Contributor Author

edymtt commented Oct 10, 2025

@swift-ci please smoke test

@edymtt
Copy link
Contributor Author

edymtt commented Oct 10, 2025

@swift-ci please build toolchain

list(LENGTH triple_configuration_list triple_configuration_list_length)
if(triple_configuration_list_length GREATER_EQUAL 2)
list(GET triple_configuration_list 1 sdk_path)
set(EMBEDDED_STDLIB_SDK_FOR_${triple} "${sdk_path}")
Copy link
Contributor Author

@edymtt edymtt Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing the failure in Linux and Windows bots, since I am overwriting the values for SWIFT_SDK_embedded_ARCH_wasm32_PATH and SWIFT_SDK_embedded_ARCH_wasm32-unknown-wasip1_PATH that are passed directly to CMake.

[2025-10-10T19:30:49.072Z] FAILED: stdlib/public/Concurrency/CMakeFiles/embedded-concurrency-default-executor-wasm32-unknown-wasip1.dir/CooperativeGlobalExecutor.cpp.o 
[2025-10-10T19:30:49.072Z] /home/build-user/swift-nightly-install/usr/bin/clang++ ...  --sysroot=  ...
[2025-10-10T19:30:49.072Z] clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
[2025-10-10T19:30:49.072Z] /home/build-user/swift/stdlib/public/Concurrency/CooperativeGlobalExecutor.cpp:33:10: fatal error: 'chrono' file not found
[2025-10-10T19:30:49.072Z]    33 | #include <chrono>
[2025-10-10T19:30:49.072Z]       |          ^~~~~~~~
[2025-10-10T19:30:49.072Z] 1 error generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant