Skip to content

Commit

Permalink
Update actions/build
Browse files Browse the repository at this point in the history
  • Loading branch information
agievich committed May 10, 2024
1 parent dbf6e4d commit bdd61f9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ jobs:
CXX: clang
- BUILD_TYPE: ASan
CXX: clang
- BUILD_TYPE: MemSan
CXX: clang
- BUILD_TYPE: Debug
CXX: clang
CXX: g++
steps:
- name: Get source
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
*.opensdf

# Specific files
_docs
.aux
apps
backup
build
Expand Down
26 changes: 14 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g3")
set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_COVERAGE} -O0 -g3 \
--coverage")
set(CMAKE_CXX_FLAGS_ASAN "${CMAKE_CXX_FLAGS_ASAN} -fsanitize=address \
-fno-common -O3")
set(CMAKE_CXX_FLAGS_ASANDBG "${CMAKE_CXX_FLAGS_ASANDBG} -fsanitize=address \
-fno-common -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sibling-calls")
set(CMAKE_CXX_FLAGS_ASAN "${CMAKE_CXX_FLAGS_ASAN} -fno-common -O3 \
-fsanitize=address")
set(CMAKE_CXX_FLAGS_ASANDBG "${CMAKE_CXX_FLAGS_ASANDBG} -fno-common -O1 -g3 \
-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls")
set(CMAKE_CXX_FLAGS_CHECK "${CMAKE_CXX_FLAGS_CHECK} -Werror -O1 \
-Wcast-qual -fanalyzer")
endif(CMAKE_COMPILER_IS_GNUCC)
Expand All @@ -60,15 +60,17 @@ if(CMAKE_COMPILER_IS_CLANG)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g3")
set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_COVERAGE} -O0 -g3 \
--coverage")
set(CMAKE_CXX_FLAGS_ASAN "${CMAKE_CXX_FLAGS_ASAN} -fsanitize=address \
-fno-common -fsanitize=undefined -fno-sanitize-recover -O3")
set(CMAKE_CXX_FLAGS_ASANDBG "${CMAKE_CXX_FLAGS_ASANDBG} -fsanitize=address \
-fno-common -fsanitize=undefined -fno-sanitize-recover -O1 -g3 \
set(CMAKE_CXX_FLAGS_ASAN "${CMAKE_CXX_FLAGS_ASAN} -fno-common -O3 \
-fsanitize=address -fsanitize=undefined -fno-sanitize-recover \
-fsanitize-undefined-trap-on-error")
set(CMAKE_CXX_FLAGS_ASANDBG "${CMAKE_CXX_FLAGS_ASANDBG} -fno-common -O1 -g3 \
-fsanitize=address -fsanitize=undefined -fno-sanitize-recover \
-fsanitize-undefined-trap-on-error -fno-omit-frame-pointer \
-fno-optimize-sibling-calls")
set(CMAKE_CXX_FLAGS_MEMSAN "${CMAKE_CXX_FLAGS_MEMSAN} -O3 -fsanitize=memory")
set(CMAKE_CXX_FLAGS_MEMSANDBG "${CMAKE_CXX_FLAGS_MEMSANDBG} -O1 -g3 \
-fsanitize=memory -fsanitize-memory-track-origins=2 \
-fno-omit-frame-pointer -fno-optimize-sibling-calls")
set(CMAKE_CXX_FLAGS_MEMSAN "${CMAKE_CXX_FLAGS_MEMSAN} -fsanitize=memory -O3")
set(CMAKE_CXX_FLAGS_MEMSANDBG "${CMAKE_CXX_FLAGS_MEMSANDBG} \
-fsanitize=memory -O1 -g3 -fno-omit-frame-pointer \
-fno-optimize-sibling-calls -fsanitize-memory-track-origins=2")
set(CMAKE_CXX_FLAGS_CHECK "${CMAKE_CXX_FLAGS_CHECK} -Werror -O1 -Wcast-qual")
endif(CMAKE_COMPILER_IS_CLANG)

Expand Down

0 comments on commit bdd61f9

Please sign in to comment.