2019-04-21 18:08:33 +00:00
|
|
|
# Support debug and release builds from command line for CI
|
|
|
|
CONFIG += debug_and_release
|
|
|
|
|
|
|
|
# Ensure symbols are always generated
|
|
|
|
CONFIG += force_debug_info
|
|
|
|
|
|
|
|
# Disable asserts on release builds
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DEFINES += NDEBUG
|
|
|
|
}
|
|
|
|
|
2020-04-11 00:21:17 +00:00
|
|
|
# Enable ASan for Linux or macOS
|
|
|
|
#CONFIG += sanitizer sanitize_address
|
|
|
|
|
|
|
|
# Enable ASan for Windows
|
2020-08-23 00:36:16 +00:00
|
|
|
#QMAKE_CFLAGS += -fsanitize=address
|
|
|
|
#QMAKE_CXXFLAGS += -fsanitize=address
|
|
|
|
#QMAKE_LFLAGS += -incremental:no -wholearchive:clang_rt.asan_dynamic-x86_64.lib -wholearchive:clang_rt.asan_dynamic_runtime_thunk-x86_64.lib
|