# Sanitizer flags


sanitize_address {
    QMAKE_CFLAGS   += $$QMAKE_SANITIZE_ADDRESS_CFLAGS
    QMAKE_CXXFLAGS += $$QMAKE_SANITIZE_ADDRESS_CXXFLAGS
    QMAKE_LFLAGS   += $$QMAKE_SANITIZE_ADDRESS_LFLAGS
}

sanitize_memory {
    QMAKE_CFLAGS   += $$QMAKE_SANITIZE_MEMORY_CFLAGS
    QMAKE_CXXFLAGS += $$QMAKE_SANITIZE_MEMORY_CXXFLAGS
    QMAKE_LFLAGS   += $$QMAKE_SANITIZE_MEMORY_LFLAGS
}

sanitize_thread {
    QMAKE_CFLAGS   += $$QMAKE_SANITIZE_THREAD_CFLAGS
    QMAKE_CXXFLAGS += $$QMAKE_SANITIZE_THREAD_CXXFLAGS
    QMAKE_LFLAGS   += $$QMAKE_SANITIZE_THREAD_LFLAGS
}

sanitize_undefined {
    QMAKE_CFLAGS   += $$QMAKE_SANITIZE_UNDEFINED_CFLAGS
    QMAKE_CXXFLAGS += $$QMAKE_SANITIZE_UNDEFINED_CXXFLAGS
    QMAKE_LFLAGS   += $$QMAKE_SANITIZE_UNDEFINED_LFLAGS
}

QMAKE_CFLAGS   += $$QMAKE_COMMON_SANITIZE_CFLAGS
QMAKE_CXXFLAGS += $$QMAKE_COMMON_SANITIZE_CXXFLAGS

