Skip to content

Commit

Permalink
TMP: Add ASAN to debug Focal CI
Browse files Browse the repository at this point in the history
Signed-off-by: Matias N. Goldberg <[email protected]>
  • Loading branch information
darksylinc committed Dec 11, 2022
1 parent 44d2f8a commit 7ada41b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
#============================================================================
project(gz-rendering7 VERSION 7.2.0)

set( CMAKE_C_FLAGS
"${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address" )
set( CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address" )
set( CMAKE_LINKER_FLAGS
"${CMAKE_LINKER_FLAGS} -fsanitize=address" )

#============================================================================
# Find gz-cmake
#============================================================================
Expand Down
7 changes: 7 additions & 0 deletions ogre2/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
set( CMAKE_C_FLAGS
"${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address" )
set( CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address" )
set( CMAKE_LINKER_FLAGS
"${CMAKE_LINKER_FLAGS} -fsanitize=address" )

# Collect source files into the "sources" variable and unit test files into the
# "gtest_sources" variable.
gz_get_libsources_and_unittests(sources gtest_sources)
Expand Down

0 comments on commit 7ada41b

Please sign in to comment.