]> granicus.if.org Git - clang/commitdiff
GCC passes -z foo directly through to the linker (and yes -z=foo becomes
authorNick Lewycky <nicholas@mxc.ca>
Sat, 4 Jun 2011 06:48:26 +0000 (06:48 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 4 Jun 2011 06:48:26 +0000 (06:48 +0000)
"-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

include/clang/Driver/Options.td

index 23b351c78a1b7abdf98bba16398f30933f854f08..bdb163247fe7fa6c2ed6400fb35b16aa8a39efdb 100644 (file)
@@ -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">;