Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Sep 6, 2024
1 parent 2f3b784 commit 7b25835
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmake/FindTigerBeetle.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ endif()

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(ZIG_BUILD_TYPE "")
set(ZIG_CONFIG "-Dconfig=default")
else()
set(ZIG_BUILD_TYPE "-Drelease")
set(ZIG_CONFIG "-Dconfig=production")
endif()

if(WIN32)
Expand All @@ -67,7 +65,7 @@ endif()
if(NOT EXISTS "${TIGERBEETLE_ROOT_DIR}/tigerbeetle")
message(STATUS "Build TigerBeetle with Zig")
execute_process(
COMMAND ${BUILD_TB} ${ZIG_BUILD_TYPE} ${ZIG_CONFIG}
COMMAND ${BUILD_TB} ${ZIG_BUILD_TYPE}
WORKING_DIRECTORY ${TIGERBEETLE_ROOT_DIR}
RESULT_VARIABLE BUILD_TB_RESULT
)
Expand All @@ -83,7 +81,7 @@ if(BUILD_TB_C_CLIENT)
# Build c_client with Zig
message(STATUS "Build c_client libraries with Zig")
execute_process(
COMMAND ${BUILD_TB} clients:c ${ZIG_BUILD_TYPE} ${ZIG_CONFIG}
COMMAND ${BUILD_TB} clients:c ${ZIG_BUILD_TYPE}
WORKING_DIRECTORY ${TIGERBEETLE_ROOT_DIR}
RESULT_VARIABLE BUILD_C_CLIENT_RESULT
)
Expand Down

0 comments on commit 7b25835

Please sign in to comment.