Skip to content

Commit

Permalink
Set CMAKE_<LANG>_BYTE_ORDER (emscripten-core#20455)
Browse files Browse the repository at this point in the history
This helps libevent which depends on CMake setting CMAKE_C_BYTE_ORDER.
  • Loading branch information
eagleoflqj authored Oct 16, 2023
1 parent 6300002 commit 84bd3d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/Modules/Platform/Emscripten.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ set(CMAKE_HAVE_UNISTD_H 1)
set(CMAKE_HAVE_PTHREAD_H 1)
set(CMAKE_HAVE_SYS_PRCTL_H 1)
set(CMAKE_WORDS_BIGENDIAN 0)
set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")
set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
set(CMAKE_DL_LIBS)

function(em_validate_asmjs_after_build target)
Expand Down

0 comments on commit 84bd3d4

Please sign in to comment.