Skip to content

Commit

Permalink
Trying to solve issues with macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Apr 3, 2024
1 parent 5682a5d commit d033e2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
with:
fetch-depth: 0

- name: Export XCode SDK Root
if: matrix.os == 'macos-latest'
run: echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV

# TODO: Add support for NetCore Bench
- name: Set up the environment
run: |
Expand Down
11 changes: 6 additions & 5 deletions cmake/FindNodeJS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -541,19 +541,20 @@ if(NOT NodeJS_LIBRARY)
set(NodeJS_PREFIX)
endif()

set(BUILD_DEBUG)
set(BUILD_DEBUG_ASAN)

if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set(BUILD_DEBUG "--debug")
set(BUILD_DEBUG --debug)

if(OPTION_BUILD_ADDRESS_SANITIZER)
set(BUILD_DEBUG "${BUILD_DEBUG} --enable-asan")
set(BUILD_DEBUG_ASAN --enable-asan)
endif()
else()
set(BUILD_DEBUG)
endif()

execute_process(
WORKING_DIRECTORY "${NodeJS_OUTPUT_PATH}"
COMMAND ${ICU_ENV_VAR} ./configure ${NodeJS_PREFIX} ${BUILD_ICU_FLAGS} --shared ${BUILD_DEBUG}
COMMAND ${ICU_ENV_VAR} ./configure ${NodeJS_PREFIX} ${BUILD_ICU_FLAGS} --shared ${BUILD_DEBUG} ${BUILD_DEBUG_ASAN}
)

message(STATUS "Build NodeJS shared library")
Expand Down

0 comments on commit d033e2e

Please sign in to comment.