aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-06-04 06:48:26 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-06-04 06:48:26 +0000
commitf6ff3abc3a7ee63fcf279e68ef802a12d94adf08 (patch)
tree00fd1b26854287e686bc9267b20e0ae5a9833623
parent80df02592ccc283b20b66959f74c6d61af28cadb (diff)
GCC passes -z foo directly through to the linker (and yes -z=foo becomes
"-z =foo"). Do the same thing in clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132630 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Driver/Options.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td
index 23b351c78a..bdb163247f 100644
--- a/include/clang/Driver/Options.td
+++ b/include/clang/Driver/Options.td
@@ -679,6 +679,7 @@ def x : JoinedOrSeparate<"-x">, Flags<[DriverOption]>,
HelpText<"Treat subsequent input files as having type <language>">,
MetaVarName<"<language>">;
def y : Joined<"-y">;
+def z : JoinedOrSeparate<"-z">, Flags<[LinkerInput, RenderSeparate]>;
def working_directory : Separate<"-working-directory">,
HelpText<"Resolve file paths relative to the specified directory">;