Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lldb] build.py: fix behavior when passing --compiler=/path/to/compiler
All the other paths in the find_toolchain function return a tuple (detected_toolchain_type, compiler_path), but when the parameter to --compiler is not one of the predefined names it only returns the detected toolchain type, which causes an error when trying to unpack the result. This patch changes it to return also the compiler path passed as a parameter. Differential Revision: https://reviews.llvm.org/D61713 llvm-svn: 360355
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
RUN: %build -n --verbose --arch=64 --compiler=/path/to/my/clang -o foo \ | ||
RUN: foobar.c | FileCheck %s --check-prefix=CHECK-CLANG | ||
RUN: %build -n --verbose --arch=64 --compiler=/path/to/my/x64/cl.exe -o foo \ | ||
RUN: foobar.c | FileCheck %s --check-prefix=CHECK-MSVC | ||
|
||
CHECK-CLANG: Command Line: /path/to/my/clang | ||
CHECK-SAME: -o | ||
|
||
CHECK-MSVC: Command Line: /path/to/my/x64/cl.exe | ||
CHECK-SAME: /Fo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters