Use gcc’s Address Sanitizer only in Debug mode.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-06 19:23:42 +03:00
parent 305cbe8acb
commit 1c987b919b
19 changed files with 152 additions and 95 deletions

View File

@ -15,6 +15,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -22,6 +24,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -16,6 +16,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -23,6 +25,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -14,6 +14,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -21,6 +23,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -14,6 +14,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -21,6 +23,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -13,6 +13,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -20,6 +22,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -13,6 +13,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -20,6 +22,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -13,6 +13,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -20,6 +22,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -13,6 +13,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -20,6 +22,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -19,6 +19,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -26,6 +28,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -13,6 +13,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -20,6 +22,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -13,6 +13,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -20,6 +22,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -13,6 +13,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -20,6 +22,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -18,6 +18,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -25,6 +27,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -15,6 +15,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -22,6 +24,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -13,6 +13,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -20,6 +22,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -15,6 +15,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -22,6 +24,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -11,6 +11,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -18,6 +20,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -15,6 +15,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -22,6 +24,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \

View File

@ -15,6 +15,8 @@ unix {
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
# do nothing
} else {
CONFIG(debug, debug|release){
# Debug mode
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
@ -22,6 +24,7 @@ unix {
QMAKE_LFLAGS += -fsanitize=address
}
}
}
clang*{
QMAKE_CXXFLAGS += \