Skip to content

Commit

Permalink
Emscripten下别指定c++编译器
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jun 25, 2024
1 parent 39e6d1b commit 974cf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ else()
)
endif()

if (UNIX AND NOT OHOS)
if (UNIX AND NOT OHOS 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 974cf1a

Please sign in to comment.