Skip to content

Commit

Permalink
More wild guessing
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoFX committed Sep 6, 2024
1 parent 9e11aba commit 1b2a3ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
message(STATUS "aarch64 detected; disabling stack protector")
# GMP seems to need this
string(APPEND LEAN_EXTRA_CXX_FLAGS " -fno-stack-protector")
string(APPEND LEAN_EXTRA_CXX_FLAGS " -fstack-protector-strong")
string(APPEND LEAN_EXTRA_LINKER_FLAGS " -fstack-protector-strong")
endif()

# Added for CTest
Expand Down Expand Up @@ -256,7 +257,7 @@ if("${CMAKE_SYSTEM_NAME}" MATCHES "Emscripten")
PREFIX libuv
GIT_REPOSITORY https://github.com/libuv/libuv
GIT_TAG v1.48.0
CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release -DLIBUV_BUILD_TESTS=OFF -DLIBUV_BUILD_SHARED=OFF -DCMAKE_AR=${CMAKE_SOURCE_DIR}/../emsdk/emsdk-main/upstream/emscripten/emar -DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/../emsdk/emsdk-main/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_FLAGS="${EMSCRIPTEN_SETTINGS}"
CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release -DLIBUV_BUILD_TESTS=OFF -DLIBUV_BUILD_SHARED=OFF -DCMAKE_AR=${CMAKE_SOURCE_DIR}/../emsdk/emsdk-main/upstream/emscripten/emar -DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/../emsdk/emsdk-main/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_FLAGS="-s ALLOW_MEMORY_GROWTH=1 -fwasm-exceptions -pthread -flto"
BUILD_IN_SOURCE ON
INSTALL_COMMAND "")
set(LIBUV_INCLUDE_DIR "${CMAKE_BINARY_DIR}/libuv/src/libuv/include")
Expand Down

0 comments on commit 1b2a3ae

Please sign in to comment.