[all-commits] [llvm/llvm-project] 305b25: [flang] Support discovering LLVM/Clang/MLIR withou...
Michał Górny via All-commits
all-commits at lists.llvm.org
Mon Jan 13 09:18:34 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 305b25c2f4264971515f71d192b75a9d27037c2d
https://github.com/llvm/llvm-project/commit/305b25c2f4264971515f71d192b75a9d27037c2d
Author: Michał Górny <mgorny at gentoo.org>
Date: 2025-01-13 (Mon, 13 Jan 2025)
Changed paths:
M flang/CMakeLists.txt
Log Message:
-----------
[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 at nvidia.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list