Skip to content

Commit 9b84674

Browse files
committed
Explicitly pass the emscripten compiler file suffixes to cmake on Windows to fix cmake em++ invocation on Windows Vista.
1 parent 2d96055 commit 9b84674

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cmake/Platform/Emscripten.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ endif()
2424

2525
# Specify the compilers to use for C and C++
2626
if ("${CMAKE_C_COMPILER}" STREQUAL "")
27-
set(CMAKE_C_COMPILER "emcc")
28-
set(CMAKE_CXX_COMPILER "em++")
29-
set(CMAKE_AR "emar")
30-
set(CMAKE_RANLIB "emranlib")
27+
set(CMAKE_C_COMPILER "emcc.exe")
28+
set(CMAKE_CXX_COMPILER "em++.exe")
29+
set(CMAKE_AR "emar.exe")
30+
set(CMAKE_RANLIB "emranlib.exe")
3131
endif()
3232

3333
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

0 commit comments

Comments
 (0)