Skip to content

Commit

Permalink
Fix Emscripten build on Windows host system.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
weitjong committed Mar 23, 2017
1 parent c73f065 commit 5649e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/Modules/CheckCompilerToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ else ()
# Use the same target flag as configured by Android/CMake toolchain file
string (REGEX REPLACE "^.*-target ([^ ]+).*$" "-target;\\1" ARCH_FLAGS "${CMAKE_CXX_FLAGS}")
endif ()
execute_process (COMMAND ${CMAKE_C_COMPILER} ${ARCH_FLAGS} -E -dM -xc ${NULL_DEVICE} RESULT_VARIABLE CC_EXIT_STATUS OUTPUT_VARIABLE NATIVE_PREDEFINED_MACROS ERROR_QUIET)
execute_process (COMMAND ${CMAKE_C_COMPILER} ${ARCH_FLAGS} -E -dM -xc ${NULL_DEVICE${EMCC_FIX}} RESULT_VARIABLE CC_EXIT_STATUS OUTPUT_VARIABLE NATIVE_PREDEFINED_MACROS ERROR_QUIET)
if (NOT CC_EXIT_STATUS EQUAL 0)
message (FATAL_ERROR "Could not check compiler toolchain as it does not handle '-E -dM' compiler flags correctly")
endif ()
Expand Down

0 comments on commit 5649e9b

Please sign in to comment.