aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2022-03-19 16:53:59 -0500
committerWill Dietz <w@wdtz.org>2022-03-19 18:22:09 -0500
commit02db3cfe7d695da8a3119e0305c21a27af6f605c (patch)
tree03a3105d77f59511cf8d998799f40c510f70a98f /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent3807583b8f879e4ecfc63b268622aee399fbe05a (diff)
downloadllvm-02db3cfe7d695da8a3119e0305c21a27af6f605c.zip
llvm-02db3cfe7d695da8a3119e0305c21a27af6f605c.tar.gz
llvm-02db3cfe7d695da8a3119e0305c21a27af6f605c.tar.bz2
mlir: set CMAKE_INCLUDE_CURRENT_DIR to fix out-of-tree builds
This option tells CMake to add current source and binary directories to the include path for each directory[1]. Required include directories from build tree (for generated files) were previously added in `mlir_tablegen` but this was changed in 03078ec20b12605fd4dfd9fe9c98a26c9d2286d7 . These are still needed, however, for out-of-tree builds that don't build as part of LLVM (via LLVM_ENABLE_PROJECTS). Building as part of LLVM works regardless, AFAICT, because LLVM sets this option and so the MLIR build inherits it. FWIW, various other (in-tree) LLVM projects set this as well. And of course this fixes the out-of-tree mlir-by-itself build scenario I'm using. [1] https://cmake.org/cmake/help/latest/variable/CMAKE_INCLUDE_CURRENT_DIR.html Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D122088
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions