Skip to content

Commit 9a97ac6

Browse files
committed
Fix a test failure
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
1 parent 675595e commit 9a97ac6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

clang/test/Driver/link-device-code.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# RUN: not clang-sycl-linker %t.bar.bc %t.baz.bc -triple=spirv64 --dry-run -o a.spv --print-linked-module 2>&1 | FileCheck %s --check-prefix=CHECK-MULTIPLE-DEFS
88

9-
# RUN: clang-sycl-linker %t.foo.bc %t.bar.bc -device-libs=%t.libsycl.bc -library-path=/ -triple=spirv64 --dry-run -o a.spv --print-linked-module 2>&1 | FileCheck %s --check-prefix=CHECK-DEVICE-LIB
9+
# RUN: clang-sycl-linker %t.foo.bc %t.bar.bc -device-libs=%t.libsycl.bc -library-path= -triple=spirv64 --dry-run -o a.spv --print-linked-module 2>&1 | FileCheck %s --check-prefix=CHECK-DEVICE-LIB
1010

1111
; CHECK-SIMPLE: define {{.*}}foo_func1{{.*}}
1212
; CHECK-SIMPLE: define {{.*}}foo_func2{{.*}}

clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ Expected<SmallVector<std::string>> getSYCLDeviceLibs(const ArgList &Args) {
223223
StringRef LibraryPath;
224224
if (Arg *A = Args.getLastArg(OPT_library_path_EQ))
225225
LibraryPath = A->getValue();
226-
if (LibraryPath.empty())
227-
return DeviceLibFiles;
228226
if (Arg *A = Args.getLastArg(OPT_device_libs_EQ)) {
229227
if (A->getValues().size() == 0)
230228
return createStringError(

0 commit comments

Comments
 (0)