diff options
author | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-03-22 17:04:01 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-03-23 15:14:51 +0000 |
commit | af8056889ac9913c587293fd68503b4883dab558 (patch) | |
tree | df7025509dc7b3fe7001cfa7a31d4e4dec6bd4ab /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 94ef248d7b76939cc3caacb83b7e168b82a74764 (diff) | |
download | llvm-af8056889ac9913c587293fd68503b4883dab558.zip llvm-af8056889ac9913c587293fd68503b4883dab558.tar.gz llvm-af8056889ac9913c587293fd68503b4883dab558.tar.bz2 |
[flang][cmake] Improve how CLANG_DIR is handled
* Added a sanity check with `Clang_FOUND` to verify that find_package
succeeded
* Made sure that find_package won't use any of CMake's standard paths
to guarantee that only the path provided with CLANG_DIR is considered
(implemented through NO_DEFAULT_PATH)
* Made the call to get_filename_component more explicit (so that it is
clear what the base directory is)
* Updated comments to clarify what CLANG_DIR means
Differential Revision: https://reviews.llvm.org/D99088
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions