From 0d07e77ce679ac2ead37fa0e464cbe59f8918441 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 4 Aug 2020 13:00:41 -0700 Subject: [PATCH] Remove `-Wl,--no-threads` from linker flags I'm not sure why this was in here as it pre-dates the initial commit. I imagine it could be that there were bugs in the early version of wasm-ld related to threading. In recent version of lld this flag has been renamed: https://reviews.llvm.org/D76885 --- wasi-sdk.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/wasi-sdk.cmake b/wasi-sdk.cmake index e8d41ee..18c9901 100644 --- a/wasi-sdk.cmake +++ b/wasi-sdk.cmake @@ -22,7 +22,6 @@ set(CMAKE_C_COMPILER_TARGET ${triple} CACHE STRING "wasi-sdk build") set(CMAKE_CXX_COMPILER_TARGET ${triple} CACHE STRING "wasi-sdk build") set(CMAKE_C_FLAGS "-v" CACHE STRING "wasi-sdk build") set(CMAKE_CXX_FLAGS "-v -std=c++11" CACHE STRING "wasi-sdk build") -set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-threads" CACHE STRING "wasi-sdk build") set(CMAKE_SYSROOT ${WASI_SDK_PREFIX}/share/wasi-sysroot CACHE STRING "wasi-sdk build") set(CMAKE_STAGING_PREFIX ${WASI_SDK_PREFIX}/share/wasi-sysroot CACHE STRING "wasi-sdk build")