Skip to content

Commit 68e2b69

Browse files
committed
[NvlinkWrapper] Fix -pluing not consuming its argument
Summary: Sometimes `clang` will pass `-plugin` when doing LTO, which should be correctly consumed by the nvlink wrapper. Right now it was leaving the `plugin.so` argument as a regular input, which would cause it to error on the `.so` input.
1 parent 38666e6 commit 68e2b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-nvlink-wrapper/NVLinkOpts.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def library_S : Separate<["--", "-"], "library">, Flags<[HelpHidden]>,
3939
def library_EQ : Joined<["--", "-"], "library=">, Flags<[HelpHidden]>,
4040
Alias<library_path>;
4141

42-
def plugin : Joined<["--", "-"], "plugin">,
42+
def plugin : JoinedOrSeparate<["--", "-"], "plugin">,
4343
Flags<[HelpHidden, WrapperOnlyOption]>;
4444

4545
def arch : Separate<["--", "-"], "arch">,

0 commit comments

Comments
 (0)