summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-02-26 17:19:46 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-02-26 17:21:28 +0100
commit26befce273a3cc53ec02edbbc100d5aeca9493a1 (patch)
tree3087344ec7ddc314007cd4da3ec65100ba8381d0 /src/plugins
parent35d31aded75ffd607c80b127d8ff8483457fd8a8 (diff)
downloadqt-creator-26befce273a3cc53ec02edbbc100d5aeca9493a1.tar.gz
Fixes: C++ Parser configuration for Qt/SDK
Done by ossi
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/qt4projectmanager/qt4nodes.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp
index 0a801b3d80..e2ed24cadc 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.cpp
+++ b/src/plugins/qt4projectmanager/qt4nodes.cpp
@@ -691,9 +691,17 @@ void Qt4ProFileNode::update()
Qt4PriFileNode::update(fileForCurrentProject, reader);
+ QString qmakeCxx = reader->value(QLatin1String("QMAKE_CXX"));
+ if (qmakeCxx.isEmpty()) {
+ // macx-xcode mkspec resets the value of QMAKE_CXX.
+ // Unfortunately, we need a valid QMAKE_CXX to configure the parser.
+ qmakeCxx = QLatin1String("c++");
+ }
+
// update other variables
QHash<Qt4Variable, QStringList> newVarValues;
- newVarValues[CxxCompilerVar] << reader->value(QLatin1String("QMAKE_CXX"));
+
+ newVarValues[CxxCompilerVar] << qmakeCxx;
newVarValues[DefinesVar] = reader->values(QLatin1String("DEFINES"));
newVarValues[IncludePathVar] = includePaths(reader);
newVarValues[UiDirVar] = uiDirPaths(reader);