Commit e6b23dc2 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

clangcodemodel: Use forward slashes for CLANG_RESOURCE_DIR define



Adapt qmake and qbs files, fixing warnings on Windows:
clangutils.cpp(78): warning C4129: 'o': unrecognized character escape sequence
clangutils.cpp(78): warning C4129: 'L': unrecognized character escape sequence
clangutils.cpp(78): warning C4129: 'l': unrecognized character escape sequence

Change-Id: I7a5fe674665437582457645f2a081e1e38d5df77
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 74734690
var Environment = loadExtension("qbs.Environment")
var File = loadExtension("qbs.File")
var FileInfo = loadExtension("qbs.FileInfo")
var MinimumLLVMVersion = "3.8.0"
var Process = loadExtension("qbs.Process")
......@@ -57,12 +58,12 @@ function llvmConfig(qbs, qtcFunctions)
function includeDir(llvmConfig)
{
return readOutput(llvmConfig, ["--includedir"])
return FileInfo.toNativeSeparators(readOutput(llvmConfig, ["--includedir"]));
}
function libDir(llvmConfig)
{
return readOutput(llvmConfig, ["--libdir"])
return FileInfo.toNativeSeparators(readOutput(llvmConfig, ["--libdir"]));
}
function version(llvmConfig)
......
......@@ -3,7 +3,8 @@ include(../../shared/clang/clang_installation.pri)
# The following defines are used to determine the clang include path for intrinsics.
DEFINES += CLANG_VERSION=\\\"$${LLVM_VERSION}\\\"
DEFINES += "\"CLANG_RESOURCE_DIR=\\\"$${LLVM_LIBDIR}/clang/$${LLVM_VERSION}/include\\\"\""
CLANG_RESOURCE_DIR=$$clean_path($${LLVM_LIBDIR}/clang/$${LLVM_VERSION}/include)
DEFINES += "\"CLANG_RESOURCE_DIR=\\\"$${CLANG_RESOURCE_DIR}\\\"\""
SOURCES += \
clangactivationsequencecontextprocessor.cpp \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment