Skip to content

Commit f7b6dc8

Browse files
committed
[Clang] Fix missing - in argument to nvlinker
1 parent 2b7e9d2 commit f7b6dc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/Cuda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ void NVPTX::Linker::ConstructJob(Compilation &C, const JobAction &JA,
635635
getNVPTXTargetFeatures(C.getDriver(), getToolChain().getTriple(), Args,
636636
Features);
637637
CmdArgs.push_back(
638-
Args.MakeArgString("--plugin-opt=mattr=" + llvm::join(Features, ",")));
638+
Args.MakeArgString("--plugin-opt=-mattr=" + llvm::join(Features, ",")));
639639

640640
// Add paths for the default clang library path.
641641
SmallString<256> DefaultLibPath =

clang/test/Driver/cuda-cross-compiling.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@
104104
// RUN: %clang -target nvptx64-nvidia-cuda --cuda-feature=+ptx63 -march=sm_52 -### %s 2>&1 \
105105
// RUN: | FileCheck -check-prefix=FEATURE %s
106106

107-
// FEATURE: clang-nvlink-wrapper{{.*}}"--plugin-opt=mattr=+ptx63"
107+
// FEATURE: clang-nvlink-wrapper{{.*}}"--plugin-opt=-mattr=+ptx63"

0 commit comments

Comments
 (0)