Skip to content

Commit

Permalink
Add FORTIFY_SOURCE flag in library build check
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarw13 committed May 12, 2021
1 parent d9306a3 commit 47adf0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
- name: Build Library in Release mode
run: |
rm -rf ./build
# Build with logging enabled.
cmake -S test -B build/ -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_CLONE_SUBMODULES=ON \
-DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG -Wno-error=pedantic -Wno-variadic-macros -DLOGGING_LEVEL_DEBUG=1 -Wformat -Wformat-security -Warray-bounds'
-DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG -Wformat -Wformat-security -Warray-bounds -D_FORTIFY_SOURCE=1'
make -C build/ coverity_analysis -j8
unittest-with-sanitizer:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,6 +64,7 @@ jobs:
- name: Build
run: |
sudo apt-get install -y lcov sed
# Build with logging enabled.
cmake -S test -B build/ \
-G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Debug \
Expand Down

0 comments on commit 47adf0a

Please sign in to comment.