Disable compile with debug information on mac.
--HG-- branch : develop
This commit is contained in:
parent
952e7d06b4
commit
a2e839532b
|
@ -151,7 +151,7 @@ CONFIG(debug, debug|release){
|
|||
# Release
|
||||
DEFINES += QT_NO_DEBUG_OUTPUT
|
||||
|
||||
unix:QMAKE_CXXFLAGS_RELEASE += -g
|
||||
unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g
|
||||
|
||||
#local revision number for using in version
|
||||
HG_REV=$$system(hg parents --template '{rev}')
|
||||
|
@ -253,15 +253,10 @@ INCLUDEPATH += $${PWD}/../libs/vpropertyexplorer
|
|||
DEPENDPATH += $${PWD}/../libs/vpropertyexplorer
|
||||
|
||||
CONFIG(release, debug|release){
|
||||
unix:macx{
|
||||
# On Mac
|
||||
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(TARGET) $(TARGET).debug &&
|
||||
QMAKE_POST_LINK += strip $(TARGET) &&
|
||||
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(TARGET).debug $(TARGET)
|
||||
} else {
|
||||
unix:!macx{
|
||||
# On Linux
|
||||
unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(TARGET) $(TARGET).debug &&
|
||||
unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(TARGET) &&
|
||||
unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(TARGET).debug $(TARGET)
|
||||
QMAKE_POST_LINK += objcopy --only-keep-debug $(TARGET) $(TARGET).debug &&
|
||||
QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(TARGET) &&
|
||||
QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(TARGET).debug $(TARGET)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,16 +110,11 @@ CONFIG(debug, debug|release){
|
|||
# Release
|
||||
DEFINES += QT_NO_DEBUG_OUTPUT
|
||||
|
||||
unix:QMAKE_CXXFLAGS_RELEASE += -g
|
||||
unix:macx{
|
||||
# On Mac
|
||||
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(DESTDIR)$(TARGET) $(DESTDIR)$(TARGET).debug &&
|
||||
QMAKE_POST_LINK += strip -x $(DESTDIR)$(TARGET) &&
|
||||
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)$(TARGET).debug $(DESTDIR)$(TARGET)
|
||||
} else {
|
||||
unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g
|
||||
unix:!macx{
|
||||
# On Linux
|
||||
unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&
|
||||
unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
|
||||
unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
|
||||
QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&
|
||||
QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
|
||||
QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -153,16 +153,11 @@ CONFIG(debug, debug|release){
|
|||
# Release
|
||||
DEFINES += QT_NO_DEBUG_OUTPUT
|
||||
|
||||
unix:QMAKE_CXXFLAGS_RELEASE += -g
|
||||
unix:macx{
|
||||
# On Mac
|
||||
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(DESTDIR)$(TARGET) $(DESTDIR)$(TARGET).debug &&
|
||||
QMAKE_POST_LINK += strip -x $(DESTDIR)$(TARGET) &&
|
||||
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)$(TARGET).debug $(DESTDIR)$(TARGET)
|
||||
} else {
|
||||
unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g
|
||||
unix:!macx{
|
||||
# On Linux
|
||||
unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&
|
||||
unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
|
||||
unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
|
||||
QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&
|
||||
QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
|
||||
QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user