Skip to content

Commit 6540157

Browse files
committed
[llvm-dlltool] Ignore the --temp-prefix option
llvm-dlltool tolerates unknown options as long as they are plain flags, but if given the parameter value as a separate argument, e.g. "--temp-prefix foo", it fails to ignore it. Differential Revision: https://reviews.llvm.org/D152361
1 parent 8deeaef commit 6540157

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

llvm/lib/ToolDrivers/llvm-dlltool/Options.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ def S_alias: JoinedOrSeparate<["--"], "as">, Alias<S>;
2424

2525
def f: JoinedOrSeparate<["-"], "f">, HelpText<"Assembler Flags">;
2626
def f_alias: JoinedOrSeparate<["--"], "as-flags">, Alias<f>;
27+
28+
def t: JoinedOrSeparate<["-"], "t">, HelpText<"Prefix for temporary files (ignored)">;
29+
def t_alias: JoinedOrSeparate<["--"], "temp-prefix">, Alias<t>;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
; RUN: llvm-dlltool -m i386 -d %s -l %t.a --temp-prefix foo
2+
; RUN: llvm-dlltool -m i386 -d %s -l %t.a --temp-prefix=foo
3+
; RUN: llvm-dlltool -m i386 -d %s -l %t.a -t foo
4+
; RUN: llvm-dlltool -m i386 -d %s -l %t.a -tfoo
5+
6+
LIBRARY test.dll
7+
EXPORTS
8+
TestFunction

0 commit comments

Comments
 (0)