2016-12-06 16:54:05 +03:00
|
|
|
From 96c34ce85136cbdc16ef83effa8a13137f7ae4c5 Mon Sep 17 00:00:00 2001
|
2015-11-16 20:34:52 +03:00
|
|
|
From: Jocelyn Turcotte <jturcotte@woboq.com>
|
|
|
|
Date: Fri, 6 Mar 2015 16:12:37 +0100
|
2016-12-06 16:54:05 +03:00
|
|
|
Subject: [PATCH] [NOUPSTREAM] Fix -force-debug-info with macx-clang
|
2015-11-16 20:34:52 +03:00
|
|
|
|
|
|
|
---
|
|
|
|
mkspecs/common/clang.conf | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/mkspecs/common/clang.conf b/mkspecs/common/clang.conf
|
2016-12-06 16:54:05 +03:00
|
|
|
index e003b94..e9b3291 100644
|
2015-11-16 20:34:52 +03:00
|
|
|
--- a/mkspecs/common/clang.conf
|
|
|
|
+++ b/mkspecs/common/clang.conf
|
2016-12-06 16:54:05 +03:00
|
|
|
@@ -21,11 +21,13 @@ QMAKE_CFLAGS_PRECOMPILE = -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_
|
2015-11-16 20:34:52 +03:00
|
|
|
QMAKE_CFLAGS_USE_PRECOMPILE = -Xclang -include-pch -Xclang ${QMAKE_PCH_OUTPUT}
|
|
|
|
QMAKE_CFLAGS_LTCG = -flto
|
2016-12-06 16:54:05 +03:00
|
|
|
QMAKE_CFLAGS_DISABLE_LTCG = -fno-lto
|
2015-11-16 20:34:52 +03:00
|
|
|
+QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO = $$QMAKE_CFLAGS_OPTIMIZE -g
|
|
|
|
|
|
|
|
QMAKE_CXXFLAGS_PRECOMPILE = -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
|
|
|
|
QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
|
|
|
|
QMAKE_CXXFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG
|
2016-12-06 16:54:05 +03:00
|
|
|
QMAKE_CXXFLAGS_DISABLE_LTCG = $$QMAKE_CFLAGS_DISABLE_LTCG
|
2015-11-16 20:34:52 +03:00
|
|
|
+QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
|
2016-12-06 16:54:05 +03:00
|
|
|
QMAKE_CXXFLAGS_CXX11 = -std=c++11
|
|
|
|
QMAKE_CXXFLAGS_CXX14 = -std=c++1y
|
|
|
|
QMAKE_CXXFLAGS_CXX1Z = -std=c++1z
|