diff options
author | Michal Gorny <mgorny@gentoo.org> | 2016-09-19 06:55:56 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2016-09-19 06:55:56 +0000 |
commit | cd2bfb1e7ca4148ab1e7526aa96ab96773f695ea (patch) | |
tree | 5e8ef159fd99e47270826b1a40f95c1b060049ef /clang/lib/Format/SortJavaScriptImports.cpp | |
parent | 88b93166dc1bc563195105acf3693cf13b7093ef (diff) | |
download | bcm5719-llvm-cd2bfb1e7ca4148ab1e7526aa96ab96773f695ea.tar.gz bcm5719-llvm-cd2bfb1e7ca4148ab1e7526aa96ab96773f695ea.zip |
Fix respecting LIBOMP_LLVM_LIT_EXECUTABLE as full path
Fix lit search to correctly respect LIBOMP_LLVM_LIT_EXECUTABLE as full
program path.
The variable passed to find_program() is created by CMake as a cache
variable, and therefore can be directly overriden by the user. Since
this was the design of LIBOMP_LLVM_LIT_EXECUTABLE (as can be deduced
from the error messages) and there is no other use of LIT_EXECUTABLE,
remove the redundant variable and pass LIBOMP_LLVM_LIT_EXECUTABLE
directly to find_program().
Furthermore, the previous code did not work since the HINTS argument
specifies more search directories rather than expected full path.
Quoting the CMake documentation:
> 3. Search the paths specified by the HINTS option. These should be
> paths computed by system introspection, such as a hint provided by
> the location of another item already found. Hard-coded guesses should
> be specified with the PATHS option.
Differential Revision: https://reviews.llvm.org/D24710
llvm-svn: 281887
Diffstat (limited to 'clang/lib/Format/SortJavaScriptImports.cpp')
0 files changed, 0 insertions, 0 deletions