Skip to content

Commit 09321c3

Browse files
authored
[SYCLomatic] Fix bug in libear library for intercept-build tool (#2428)
Signed-off-by: chenwei.sun <[email protected]>
1 parent 643323c commit 09321c3

File tree

1 file changed

+2
-2
lines changed
  • clang/tools/scan-build-py/lib/libear

1 file changed

+2
-2
lines changed

clang/tools/scan-build-py/lib/libear/ear.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,7 @@ int is_tool_available(const char *pathname) {
16981698
pathname[len - 3] == 'v' && pathname[len - 4] == 'n' &&
16991699
pathname[len - 5] == '/') {
17001700
// To handle case like "/path/to/nvcc"
1701-
is_nvcc = 0;
1701+
is_nvcc = 1;
17021702
}
17031703

17041704
if (is_nvcc) {
@@ -1721,7 +1721,7 @@ int is_tool_available(const char *pathname) {
17211721
if (len > 2 && pathname[len - 1] == 'd' && pathname[len - 2] == 'l' &&
17221722
pathname[len - 3] == '/') {
17231723
// To handle case like "/path/to/ld"
1724-
is_ld = 0;
1724+
is_ld = 1;
17251725
}
17261726

17271727
if (is_ld) {

0 commit comments

Comments
 (0)