forked from qt-creator/qt-creator
Clang: Fix system pre include search path
We now get the resource path from creator. The -fPIC case is working now too. Change-Id: Id191e89e6d46706748d50440038a06a349972cc9 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include "googletest.h"
|
||||
|
||||
#include "clangcompareoperators.h"
|
||||
#include "testenvironment.h"
|
||||
#include "unittest-utility-functions.h"
|
||||
|
||||
#include <clangdocument.h>
|
||||
#include <clangdocuments.h>
|
||||
@@ -63,7 +63,7 @@ struct Data {
|
||||
ClangBackEnd::Documents documents{unsavedFiles};
|
||||
Utf8String filePath{Utf8StringLiteral(TESTDATA_DIR"/cursor.cpp")};
|
||||
Document document{filePath,
|
||||
TestEnvironment::addPlatformArguments({Utf8StringLiteral("-std=c++11")}),
|
||||
UnitTest::addPlatformArguments({Utf8StringLiteral("-std=c++11")}),
|
||||
{},
|
||||
documents};
|
||||
TranslationUnit translationUnit{filePath,
|
||||
|
||||
Reference in New Issue
Block a user