Skip to content

Commit 4d13f91

Browse files
committed
Remove check for MTd for adding sycld.lib, and adjust corresponding test
1 parent 70bd2a7 commit 4d13f91

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

clang/lib/Driver/ToolChains/MSVC.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ void visualstudio::Linker::ConstructJob(Compilation &C, const JobAction &JA,
375375

376376
if (!C.getDriver().IsCLMode() && !Args.hasArg(options::OPT_nostdlib) &&
377377
Args.hasArg(options::OPT_fsycl) && !Args.hasArg(options::OPT_nolibsycl)) {
378-
if (Args.hasArg(options::OPT__SLASH_MDd) ||
379-
Args.hasArg(options::OPT__SLASH_MTd))
378+
if (Args.hasArg(options::OPT__SLASH_MDd))
380379
CmdArgs.push_back("-defaultlib:sycld.lib");
381380
else
382381
CmdArgs.push_back("-defaultlib:sycl.lib");

clang/test/Driver/sycl-offload.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,8 @@
589589
// CHECK-LINK-NOLIBSYCL: "{{.*}}link{{(.exe)?}}"
590590
// CHECK-LINK-NOLIBSYCL-NOT: "-defaultlib:sycl.lib"
591591

592-
/// Check sycld.lib is chosen with /MDd and /MTd
592+
/// Check sycld.lib is chosen with /MDd
593593
// RUN: %clang_cl -fsycl /MDd %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL-DEBUG %s
594-
// RUN: %clang_cl -fsycl /MTd %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL-DEBUG %s
595594
// CHECK-LINK-SYCL-DEBUG: "--dependent-lib=sycld"
596595
// CHECK-LINK-SYCL-DEBUG-NOT: "-defaultlib:sycld.lib"
597596

0 commit comments

Comments
 (0)