forked from ngageoint/hootenanny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocalConfig.pri.orig
54 lines (39 loc) · 1.23 KB
/
LocalConfig.pri.orig
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
CONFIG += release
CONFIG -= debug
#CONFIG += debug
#CONFIG -= release
debug {
DEFINES += DEBUG
# Runs expensive validation on several data structures to make sure everything is in sync.
#DEFINES += VALIDATE_ON
}
release {
DEFINES -= DEBUG
}
# Configure based on whether you optionally run ccache/distcc
QMAKE_CXX=g++
#QMAKE_CXX=ccache g++
#QMAKE_CXX=ccache distcc g++
# Warn about uninitialized variables
QMAKE_CXXFLAGS+=-Wuninitialized
# If the g++ version is 4.0 to 4.4, then don't use maybe-uninitialized.
# I couldn't find the exact version maybe-unintialized was introduced, but
# I know it works in g++ 4.8.4 -JRS
system( g++ --version | grep -q -e " 4.[0-7]" ) {
# pass
} else {
QMAKE_CXXFLAGS+=-Wmaybe-uninitialized
}
# Enable the gold linker for faster build times
QMAKE_LFLAGS=-fuse-ld=gold
# Set all uninitialized variables to their default values
#QMAKE_CXXFLAGS+=-fno-common
# Initialize values in BSS to zero
#QMAKE_CXXFLAGS+=-fzero-initialized-in-bss
# Show more warnings
#QMAKE_CXXFLAGS+=-Wextra
#QMAKE_CXXFLAGS+=-Wall
# Turn warnings into errors
QMAKE_CXXFLAGS+=-Werror
# Use this with valgrind
#QMAKE_CXXFLAGS+=-g -O1