Skip to content

[wasm][build] Disable networking targets from CMake build #4867

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

Conversation

kateinoigakukun
Copy link
Member

This is a follow-up to 5e7281b

@kateinoigakukun
Copy link
Member Author

@swift-ci test

@MaxDesiatov MaxDesiatov added bug WASI WebAssembly System Interface-related changes labels Feb 7, 2024
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

Please follow CMake conventions and name this FOUNDATION_.... Perhaps FOUNDATION_ENABLE_FOUNDATION_NETWORKING? The option should default to true for all targets IMO.

@kateinoigakukun kateinoigakukun force-pushed the pr-0f36722d80d2aa315829917cb564ab2773d2a9a3 branch from f4f29a4 to 17b8520 Compare February 22, 2024 04:19
@kateinoigakukun
Copy link
Member Author

@swift-ci test

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

This seems reasonable if it does not regress Windows.

install(TARGETS
CFURLSessionInterface
DESTINATION
"${CMAKE_INSTALL_FULL_LIBDIR}/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>")
Copy link
Member

Choose a reason for hiding this comment

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

I'm concerned that this might negatively impact Windows. Can you please test Windows as well?

@kateinoigakukun
Copy link
Member Author

@swift-ci Please test Windows platform

This is a follow-up to 5e7281b, which
introduced `BUILD_NETWORKING` option but didn't update the CMake build
to respect it. This patch renames the option to follow CMake conventions
and updates the build to respect it.
@kateinoigakukun kateinoigakukun force-pushed the pr-0f36722d80d2aa315829917cb564ab2773d2a9a3 branch from 17b8520 to a63cfba Compare February 23, 2024 03:04
@kateinoigakukun
Copy link
Member Author

@swift-ci Please test Linux Platform

@kateinoigakukun
Copy link
Member Author

@swift-ci Please test Windows Platform

@MaxDesiatov
Copy link
Contributor

@swift-ci test

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@kateinoigakukun kateinoigakukun merged commit ceedffe into swiftlang:main Feb 24, 2024
@kateinoigakukun kateinoigakukun deleted the pr-0f36722d80d2aa315829917cb564ab2773d2a9a3 branch February 24, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug WASI WebAssembly System Interface-related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants