Skip to content

Commit

Permalink
[unity]Emscripten下别指定clang++
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jun 25, 2024
1 parent 619673f commit b51f02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unity/native_src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ elseif (UNIX)

# definition
list(APPEND PUERTS_COMPILE_DEFINITIONS PLATFORM_LINUX)
if (NOT ("${JS_ENGINE}" STREQUAL "nodejs_16") AND NOT ("${JS_ENGINE}" STREQUAL "v8_10.6.194"))
if (NOT ("${JS_ENGINE}" STREQUAL "nodejs_16") AND NOT ("${JS_ENGINE}" STREQUAL "v8_10.6.194") AND NOT (CMAKE_SYSTEM_NAME MATCHES "Emscripten"))
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")
Expand Down

0 comments on commit b51f02f

Please sign in to comment.