File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ set(default_cmake_args
4747 -DCMAKE_C_COMPILER_WORKS=ON
4848 -DCMAKE_CXX_COMPILER_WORKS=ON
4949 -DCMAKE_SYSROOT=${wasi_sysroot}
50- -DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR} /cmake)
50+ -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 )
5156
5257if (CMAKE_C_COMPILER_LAUNCHER)
5358 list (APPEND default_cmake_args -DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} )
You can’t perform that action at this time.
0 commit comments