Skip to content

Commit

Permalink
Set symbol visibility to default for Debian 10 (Buster) in GitLab CI
Browse files Browse the repository at this point in the history
Boost.Test 1.67 has issues with hidden symbols.
Ref.: boostorg/test#199
  • Loading branch information
JM1 committed Dec 16, 2020
1 parent 3a59690 commit bef4bd5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ default:
- cd "$CI_PROJECT_DIR"
- if [ ! -e build ]; then mkdir build; fi
- cd build/
- >
# Symbol visibility is set to default because Boost.Test 1.67
# from Debian 10 (Buster) has issues with hidden symbols
# Ref.: https://github.com/boostorg/test/issues/199
export BOOST_VERSION="$(grep -F '#define BOOST_VERSION ' /usr/include/boost/version.hpp | awk '{ print $3; }')";
echo "BOOST_VERSION: $BOOST_VERSION";
if [ "$BOOST_VERSION" = "106700" ]; then
CMAKE_VISIBILITY_OPTIONS=\
-DCMAKE_CXX_VISIBILITY_PRESET=default \
-DCMAKE_C_VISIBILITY_PRESET=default \
-DCMAKE_VISIBILITY_INLINES_HIDDEN=OFF ;
else
CMAKE_VISIBILITY_OPTIONS= ;
fi
- >
cmake \
"-DCMAKE_BUILD_TYPE=${BUILD_TYPE}" \
Expand All @@ -66,6 +80,7 @@ default:
-DHBRS_MPL_ENABLE_BENCHMARKS=ON \
-DHBRS_MPL_ENABLE_ELEMENTAL=ON \
-DHBRS_MPL_ENABLE_MATLAB=OFF \
$CMAKE_VISIBILITY_OPTIONS \
.. || { cat CMakeFiles/CMakeError.log; exit 255; };
- make "-j$(nproc)"
- ccache -s
Expand Down

0 comments on commit bef4bd5

Please sign in to comment.