Skip to content

Commit

Permalink
Fix sysroot additional include
Browse files Browse the repository at this point in the history
  • Loading branch information
guusw committed Jan 31, 2025
1 parent 5023e95 commit 9b90353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Rust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function(add_rust_library)
if(EMSCRIPTEN_SYSROOT)
file(TO_CMAKE_PATH "${EMSCRIPTEN_SYSROOT}" TMP_SYSROOT)
list(APPEND EXTRA_CLANG_ARGS "--sysroot=${TMP_SYSROOT}")
list(APPEND EXTRA_CLANG_ARGS "-iwithsysroot${TMP_SYSROOT}/include/compat")
list(APPEND EXTRA_CLANG_ARGS "-isystem${TMP_SYSROOT}/include/compat")
elseif(CMAKE_SYSROOT)
file(TO_CMAKE_PATH "${CMAKE_SYSROOT}" TMP_SYSROOT)
list(APPEND EXTRA_CLANG_ARGS "--sysroot=${CMAKE_SYSROOT}")
Expand Down

0 comments on commit 9b90353

Please sign in to comment.