aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-01-13 18:18:12 +0100
committerGitHub <noreply@github.com>2025-01-13 17:18:12 +0000
commit305b25c2f4264971515f71d192b75a9d27037c2d (patch)
tree7cf34e98671bf8a0f82dfb8551103f3865436d97 /clang/lib/CodeGen/CodeGenFunction.cpp
parent8d306ccdef6b70881f5d79b09c03df720351e5f8 (diff)
downloadllvm-305b25c2f4264971515f71d192b75a9d27037c2d.zip
llvm-305b25c2f4264971515f71d192b75a9d27037c2d.tar.gz
llvm-305b25c2f4264971515f71d192b75a9d27037c2d.tar.bz2
[flang] Support discovering LLVM/Clang/MLIR without explicit *_DIR (#122639)
Support discovering LLVM, Clang and MLIR via the standard CMake logic in addition to explicitly specified `LLVM_DIR`, etc. To prevent breaking anyone's workflow the way #120914 did, this change explicitly introduces two possible code paths based on variables provided: 1. If `LLVM_DIR`, etc. are defined, the current logic is used as-is. 2. If they are not defined, `find_package()` is called normally to discover the packages using the standard CMake logic, and the discovered paths are added --------- Co-authored-by: Slava Zakharin <szakharin@nvidia.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions