Skip to content

Commit

Permalink
Pass the stack size down and dont build samples
Browse files Browse the repository at this point in the history
  • Loading branch information
sirknightj committed Nov 21, 2024
1 parent 44636e0 commit 1cc0848
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ jobs:
- name: Check Stack Size is Set
run: |
cd build
CMAKE_LOGS=$(cmake .. -DKVS_STACK_SIZE=65536 2>&1)
CMAKE_LOGS=$(cmake .. -DKVS_STACK_SIZE=65536 -DBUILD_SAMPLE=OFF 2>&1)
if ! echo "$CMAKE_LOGS" | grep -q "Building with default stack size: 65536 bytes"; then
echo "Stack size was not sent to PIC properly. See the logs below:"
echo "$CMAKE_LOGS"
Expand Down
1 change: 1 addition & 0 deletions CMake/Dependencies/libkvsCommonLws-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ExternalProject_Add(libkvsCommonLws-download
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DUSE_OPENSSL=${USE_OPENSSL}
-DUSE_MBEDTLS=${USE_MBEDTLS}
-DKVS_DEFAULT_STACK_SIZE=${KVS_DEFAULT_STACK_SIZE}
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
-DBUILD_STATIC=${BUILD_STATIC}
BUILD_ALWAYS TRUE
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ else()
string(REGEX MATCH "^[0-9]+$" IS_KVS_STACK_SIZE_A_NUMBER "${KVS_STACK_SIZE}")
if(IS_KVS_STACK_SIZE_A_NUMBER)
message(STATUS "Setting default stack size to provided value: ${KVS_STACK_SIZE} bytes")
add_definitions(-DKVS_DEFAULT_STACK_SIZE=${KVS_STACK_SIZE})
set(KVS_DEFAULT_STACK_SIZE ${KVS_STACK_SIZE})
else()
message(FATAL_ERROR "KVS_STACK_SIZE must be a numeric value, but got: ${KVS_STACK_SIZE}")
endif()
Expand Down

0 comments on commit 1cc0848

Please sign in to comment.