zig cc: handle the -r flag

This makes -r treated the same as -c which is to output an object file.
Zig's ELF linker code already handles multiple object files into an
object file with the -r flag to LLD.

closes #11683
This commit is contained in:
Andrew Kelley
2023-04-07 15:13:33 -07:00
parent aa45854ec3
commit c22a30ac99
3 changed files with 32 additions and 19 deletions

View File

@@ -34,6 +34,10 @@ const known_options = [_]KnownOpt{
.name = "c",
.ident = "c",
},
.{
.name = "r",
.ident = "r",
},
.{
.name = "l",
.ident = "l",