Skip to content
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

cmake toolchain file for wasm32-wasi-pthread #272

Closed
yamt opened this issue Dec 24, 2022 · 1 comment
Closed

cmake toolchain file for wasm32-wasi-pthread #272

yamt opened this issue Dec 24, 2022 · 1 comment

Comments

@yamt
Copy link
Contributor

yamt commented Dec 24, 2022

currently wasi-sdk.cmake has set(triple wasm32-wasi).
there needs a way to use set(triple wasm32-wasi-pthread) for threaded apps.

also, set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") is required to pass the cmake compiler test (CMakeTestCCompiler.cmake) for wasm32-wasi-pthread.

a straightforward solution is to have a separate cmake toolchain file, say wasi-sdk-pthread.cmake for threaded apps.

@yamt yamt changed the title cmake for wasm32-wasi-pthread cmake toolchain file for wasm32-wasi-pthread Jan 11, 2023
@abrown
Copy link
Collaborator

abrown commented Mar 13, 2023

I think is closed by #274.

@abrown abrown closed this as completed Mar 13, 2023
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

No branches or pull requests

2 participants