File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6597,9 +6597,8 @@ bool clang::driver::isStaticArchiveFile(const StringRef &FileName) {
6597
6597
StringRef Ext (llvm::sys::path::extension (FileName).drop_front ());
6598
6598
llvm::file_magic Magic;
6599
6599
llvm::identify_magic (FileName, Magic);
6600
- // Only .lib, .a and .lo files are to be considered.
6601
- return (Ext == " lib" ||
6602
- ((Ext == " a" || Ext == " lo" ) && Magic == llvm::file_magic::archive));
6600
+ // Only .lib and archive files are to be considered.
6601
+ return (Ext == " lib" || Magic == llvm::file_magic::archive);
6603
6602
}
6604
6603
6605
6604
bool clang::driver::willEmitRemarks (const ArgList &Args) {
Original file line number Diff line number Diff line change 15
15
// RUN: llvm-ar cr %t_2.a %t1_bundle.o
16
16
//
17
17
// RUN: touch %t.a
18
+ // RUN: touch %t.o
18
19
// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl -L/dummy/dir %t.a -### %t.o 2>&1 \
19
20
// RUN: | FileCheck %s -check-prefix=STATIC_LIB -DINPUTA=%t.a -DINPUTO=%t.o
20
21
// STATIC_LIB: ld{{(.exe)?}}" "-r" "-o" "[[INPUTLD:[^ ]+\.o]]" {{.*}} "-L/dummy/dir"{{.*}} "[[INPUTO]]" "[[INPUTA]]"
23
24
// STATIC_LIB: ld{{.*}} "[[INPUTA]]" "[[INPUTO]]"
24
25
25
26
// RUN: touch %t.lo
27
+ // RUN: touch %t.o
26
28
// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl -L/dummy/dir %t.lo -### %t.o 2>&1 \
27
29
// RUN: | FileCheck %s -check-prefix=STATIC_LIB_LO -DINPUTLO=%t.lo -DINPUTO=%t.o
28
30
// STATIC_LIB_LO: ld{{(.exe)?}}" "-r" "-o" "[[INPUTLD:[^ ]+\.o]]" {{.*}} "-L/dummy/dir"{{.*}} "[[INPUTO]]" "[[INPUTLO]]"
Original file line number Diff line number Diff line change 9
9
// RUN: echo "void foo(void) {}" > %t1.cpp
10
10
// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl %t1.cpp -c -o %t1_bundle.o
11
11
// RUN: llvm-ar cr %t.a %t1_bundle.o
12
- // RUN: llvm-ar cr %t.lo %t1_bundle.o
13
12
// RUN: llvm-ar cr %t_2.a %t1_bundle.o
14
13
15
14
// / ###########################################################################
You can’t perform that action at this time.
0 commit comments