mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
ci: set build type to debug with sanitizers
This commit is contained in:
parent
7b9ba3b717
commit
9da1743b41
6
.github/workflows/linux.yml
vendored
6
.github/workflows/linux.yml
vendored
@ -87,11 +87,11 @@ jobs:
|
||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "TEST_EXPORT_SHARED" ]; then
|
||||
EVENT_CMAKE_OPTIONS="-DEVENT__LIBRARY_TYPE=SHARED -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON"
|
||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "ASAN" ]; then
|
||||
EVENT_CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C_COMPILER=clang"
|
||||
EVENT_CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=debug"
|
||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "TSAN" ]; then
|
||||
EVENT_CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-fsanitize=thread -DCMAKE_C_COMPILER=clang"
|
||||
EVENT_CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-fsanitize=thread -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=debug"
|
||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "UBSAN" ]; then
|
||||
EVENT_CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-fsanitize=undefined -DCMAKE_C_COMPILER=clang"
|
||||
EVENT_CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-fsanitize=undefined -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=debug"
|
||||
else
|
||||
EVENT_CMAKE_OPTIONS=""
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user