Explorar el Código

[Minor] Respect full debug request in sanitizers config

tags/3.3
Vsevolod Stakhov hace 1 año
padre
commit
19161c5a95
No account linked to committer's email address
Se han modificado 1 ficheros con 10 adiciones y 2 borrados
  1. 10
    2
      cmake/Sanitizer.cmake

+ 10
- 2
cmake/Sanitizer.cmake Ver fichero

@@ -4,9 +4,17 @@ option (SANITIZE "Enable sanitizer: address, memory, undefined, leak (comma sepa
set (SAN_FLAGS "${SAN_FLAGS} -g -fno-omit-frame-pointer -DSANITIZER")
# O1 is normally set by clang, and -Og by gcc
if (COMPILER_GCC)
set (SAN_FLAGS "${SAN_FLAGS} -Og")
if (ENABLE_FULL_DEBUG MATCHES "ON")
set (SAN_FLAGS "${SAN_FLAGS} -O0")
else()
set (SAN_FLAGS "${SAN_FLAGS} -Og")
endif()
else ()
set (SAN_FLAGS "${SAN_FLAGS} -O1")
if (ENABLE_FULL_DEBUG MATCHES "ON")
set (SAN_FLAGS "${SAN_FLAGS} -O0")
else()
set (SAN_FLAGS "${SAN_FLAGS} -O1")
endif()
endif ()
if (SANITIZE)
if (ENABLE_JEMALLOC MATCHES "ON")

Cargando…
Cancelar
Guardar