Skip to content

Commit 482d553

Browse files
authored
Add cmake -fvisibility=hidden to API BC job (#1054)
Add cmake -fvisibility=hidden to API Backward compatibility job. Disable building tests as not needed there. Build type also changed to RelWithDebInfo. Needed for better report. Many internal changes will be hidden now. Only public changes needed in report. Relates-To: OLPEDGE-2256 Signed-off-by: Yaroslav Stefinko <ext-yaroslav.stefinko@here.com>
1 parent c5ffda9 commit 482d553

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/misc/api_compliance.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export PREVIOUS_SDK_VERSION_NUM="$( git describe --tags --abbrev=0 | cut -f2 -d
3434
export CURRENT_SDK_VERSION="master"
3535

3636
# Debug mode needed for api compliance tools
37+
# CXXFLAGS is needed for hiding internal API data
3738
export BUILD_TYPE="Debug"
39+
export CXXFLAGS="-fvisibility=hidden"
3840

3941
# For core dump backtrace
4042
ulimit -c unlimited
@@ -44,6 +46,7 @@ mkdir -p build
4446
pushd build
4547
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
4648
-DBUILD_SHARED_LIBS=ON \
49+
-DOLP_SDK_ENABLE_TESTING=NO \
4750
..
4851
make -j$(nproc)
4952
popd
@@ -63,6 +66,7 @@ mkdir -p build
6366
pushd build
6467
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
6568
-DBUILD_SHARED_LIBS=ON \
69+
-DOLP_SDK_ENABLE_TESTING=NO \
6670
..
6771
make -j$(nproc)
6872
popd

0 commit comments

Comments
 (0)