Fix relative include path for clang lib headers

source-relative include path was used to include the headers in question, leading to an issue if building Polygeist with an out-of-tree llvm/clang build.
The proposed fix uses the "clang/..." based include path as a starting point and locates the lib headers relative to this, which should (hopefully) work for any location of an out-of-tree build.
This commit is contained in:
Morten Borup Petersen 2021-09-13 20:21:36 +01:00 committed by William Moses
parent 593aad6231
commit fb130970f1
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@
#include "pragmaHandler.h" #include "pragmaHandler.h"
#include "llvm/IR/DerivedTypes.h" #include "llvm/IR/DerivedTypes.h"
#include "../../llvm-project/clang/lib/CodeGen/CGRecordLayout.h" #include "clang/../../lib/CodeGen/CGRecordLayout.h"
#include "../../llvm-project/clang/lib/CodeGen/CodeGenModule.h" #include "clang/../../lib/CodeGen/CodeGenModule.h"
#include "clang/AST/Mangle.h" #include "clang/AST/Mangle.h"
using namespace clang; using namespace clang;