diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-26 01:42:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-26 01:47:27 -0700 |
| commit | 6af2990549709ec5e2bc1efeb5090a944f1a8bdf (patch) | |
| tree | c4dc51ddde68c2842b6450bd6dee6432e2226bde /src/llvm.zig | |
| parent | a337046832b936d912b6902e331cb58bdc513a2d (diff) | |
| download | zig-6af2990549709ec5e2bc1efeb5090a944f1a8bdf.tar.gz zig-6af2990549709ec5e2bc1efeb5090a944f1a8bdf.zip | |
implement -femit-asm, -femit-docs, -femit-llvm-ir, etc
These CLI options are now forwarded to the stage1 backend.
We're not going to support the -mllvm CLI option any longer. As a
compromise, we unconditionally tell LLVM to output intel x86 syntax when
using -femit-asm.
Simplify stage1 logic; it no longer has the concept of an output
directory. --output-dir is no longer a valid CLI option. cmake uses
the `-femit-bin=[path]` option.
Note the changes to test/cli.zig. This breaks the CLI API that Godbolt
is using so we're going to want to open a PR to help them upgrade to the
new CLI for the upcoming Zig 0.7.0 release.
Diffstat (limited to 'src/llvm.zig')
| -rw-r--r-- | src/llvm.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/llvm.zig b/src/llvm.zig index 64a6d4e8b5..ceefb62c5d 100644 --- a/src/llvm.zig +++ b/src/llvm.zig @@ -72,3 +72,6 @@ pub const OSType = extern enum(c_int) { WASI = 34, Emscripten = 35, }; + +pub const ParseCommandLineOptions = ZigLLVMParseCommandLineOptions; +extern fn ZigLLVMParseCommandLineOptions(argc: usize, argv: [*]const [*:0]const u8) void; |
