Skip to content

Commit 4cbcce3

Browse files
committed
Further try to fix CI
1 parent 7c0c3a5 commit 4cbcce3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/wasi-sdk-sysroot.cmake

+6-1
Original file line numberDiff line numberDiff 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

5257
if(CMAKE_C_COMPILER_LAUNCHER)
5358
list(APPEND default_cmake_args -DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER})

0 commit comments

Comments
 (0)