Skip to content

Commit

Permalink
ci: wasm fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 27, 2024
1 parent 5b719b1 commit f95f4a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ elseif(APPLE AND SCORE_PCH)
endif()

if(SCORE_PCH)
if(NOT MSVC)
if(EMSCRIPTEN)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2 -mno-sse3 ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -mno-sse3 ")
elseif(NOT MSVC)
# Needed due to kfrlib injecting these flags:
# error: current translation unit is compiled with the target feature '+sse2' but the AST file was not
# error: current translation unit is compiled with the target feature '-sse3' but the AST file was not
Expand Down

0 comments on commit f95f4a6

Please sign in to comment.