Skip to content

Commit

Permalink
Add cmake -fvisibility=hidden to API BC job (#1054)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ystefinko authored Sep 15, 2020
1 parent c5ffda9 commit 482d553
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/misc/api_compliance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export PREVIOUS_SDK_VERSION_NUM="$( git describe --tags --abbrev=0 | cut -f2 -d
export CURRENT_SDK_VERSION="master"

# Debug mode needed for api compliance tools
# CXXFLAGS is needed for hiding internal API data
export BUILD_TYPE="Debug"
export CXXFLAGS="-fvisibility=hidden"

# For core dump backtrace
ulimit -c unlimited
Expand All @@ -44,6 +46,7 @@ mkdir -p build
pushd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DBUILD_SHARED_LIBS=ON \
-DOLP_SDK_ENABLE_TESTING=NO \
..
make -j$(nproc)
popd
Expand All @@ -63,6 +66,7 @@ mkdir -p build
pushd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DBUILD_SHARED_LIBS=ON \
-DOLP_SDK_ENABLE_TESTING=NO \
..
make -j$(nproc)
popd
Expand Down

0 comments on commit 482d553

Please sign in to comment.