-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathglobaldefs.pri
More file actions
29 lines (23 loc) · 812 Bytes
/
globaldefs.pri
File metadata and controls
29 lines (23 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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
}
# Enable CFG, EHCont, and CET
*-msvc {
QMAKE_CFLAGS += -guard:cf -guard:ehcont
QMAKE_CXXFLAGS += -guard:cf -guard:ehcont
QMAKE_LFLAGS += -guard:cf -guard:ehcont
contains(QT_ARCH, x86_64) {
QMAKE_LFLAGS += -cetcompat
}
}
# Enable ASan for Linux or macOS
#CONFIG += sanitizer sanitize_address
# Enable ASan for Windows
#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