We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c0c3a5 commit 4cbcce3Copy full SHA for 4cbcce3
cmake/wasi-sdk-sysroot.cmake
@@ -47,7 +47,12 @@ set(default_cmake_args
47
-DCMAKE_C_COMPILER_WORKS=ON
48
-DCMAKE_CXX_COMPILER_WORKS=ON
49
-DCMAKE_SYSROOT=${wasi_sysroot}
50
- -DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+ -DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR}/cmake
51
+ # CMake detects this based on `CMAKE_C_COMPILER` alone and when that compiler
52
+ # is just a bare "clang" installation then it can mistakenly deduce that this
53
+ # feature is supported when it's not actually supported for WASI targets.
54
+ # Currently `wasm-ld` does not support the linker flag for this.
55
+ -DCMAKE_C_LINKER_DEPFILE_SUPPORTED=OFF)
56
57
if(CMAKE_C_COMPILER_LAUNCHER)
58
list(APPEND default_cmake_args -DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER})
0 commit comments