diff --git a/.cirrus.yml b/.cirrus.yml index 91581781..40618ce1 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -18,6 +18,7 @@ task: BUILD_VALGRIND: "yes" BUILD_COVERAGE: "yes" BUILD_ANALYZE: "yes" + TEST_SYMBOL_VISIBILITY: "yes" container: image: debian:latest - name: "Debian arm64" @@ -37,6 +38,7 @@ task: SCAN_BUILD: "scan-build" MAKE: "gmake" BUILD_ANALYZE: "yes" + TEST_SYMBOL_VISIBILITY: "yes" freebsd_instance: image_family: freebsd-13-2 - name: "MacOS" @@ -46,6 +48,7 @@ task: MAKE: "make" BUILD_ASAN: "yes" BUILD_ANALYZE: "yes" + TEST_SYMBOL_VISIBILITY: "yes" macos_instance: image: ghcr.io/cirruslabs/macos-ventura-xcode:latest - name: "iOS" @@ -61,6 +64,11 @@ task: - name: "CMAKE" env: BUILD_TYPE: "cmake" + - name: "CMAKE HIDE SYMBOLS" + only_if: $TEST_SYMBOL_VISIBILITY == 'yes' + env: + BUILD_TYPE: "cmake" + CMAKE_EXTRA_FLAGS: "-DCARES_SYMBOL_HIDING=ON" - name: "AUTOTOOLS" env: BUILD_TYPE: "autotools" diff --git a/ci/build.sh b/ci/build.sh index 98b2c780..1131f32e 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -33,6 +33,6 @@ else if [ "$DIST" = "iOS" ] ; then CMAKE_FLAGS="${CMAKE_FLAGS} -DCMAKE_OSX_SYSROOT=${SYSROOT}" fi - cmake ${CMAKE_FLAGS} .. + cmake ${CMAKE_FLAGS} ${CMAKE_EXTRA_FLAGS} .. make fi