mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-21 10:23:34 +02:00
web-wasi-threads: use target wasm32-wasi-threads in sysroot wrapper
And add -pthread flag.
This commit is contained in:
@ -4,7 +4,11 @@ FROM ${ORG}/web-wasi:latest-${HOST_ARCH}
|
||||
|
||||
LABEL maintainer="Matt McCormick matt@mmmccormick.com"
|
||||
|
||||
COPY clang-wasi-threads-sysroot.sh clang++-wasi-threads-sysroot.sh /usr/local/bin/
|
||||
|
||||
ENV CROSS_TRIPLE=wasm32-wasi-threads
|
||||
ENV CC=clang-wasi-threads-sysroot.sh \
|
||||
CXX=clang++-wasi-threads-sysroot.sh
|
||||
|
||||
COPY Toolchain.cmake ${CROSS_ROOT}/
|
||||
ENV CMAKE_TOOLCHAIN_FILE=${CROSS_ROOT}/Toolchain.cmake
|
||||
|
Reference in New Issue
Block a user