Skip to content

Commit

Permalink
refactor(ci): Don't build with tcc and multi-threading support
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Oct 10, 2024
1 parent e373608 commit 95fd5ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ function set_capabilities {
}

function unit_tests {
# tcc does not support multi-threading
# because it does not have atomic intrinsics
if [[ "${CC}" == "tcc" ]] then
MULTITHREADING=0
else
MULTITHREADING=100
fi
mkdir -p build; cd build; rm -rf *
cmake -DCMAKE_BUILD_TYPE=Debug \
-DUA_BUILD_EXAMPLES=ON \
Expand All @@ -144,6 +151,7 @@ function unit_tests {
-DUA_ENABLE_MQTT=ON \
-DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON \
-DUA_FORCE_WERROR=ON \
-DUA_MULTITHREADING=${MULTITHREADING} \
..
make ${MAKEOPTS}
set_capabilities
Expand Down

0 comments on commit 95fd5ec

Please sign in to comment.