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
47
47
-DCMAKE_C_COMPILER_WORKS=ON
48
48
-DCMAKE_CXX_COMPILER_WORKS=ON
49
49
-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 )
51
56
52
57
if (CMAKE_C_COMPILER_LAUNCHER )
53
58
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