diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-25 20:52:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-25 20:52:02 -0700 |
| commit | a337046832b936d912b6902e331cb58bdc513a2d (patch) | |
| tree | 2475300223038682fad3477d5e59473b78992a5b /test/cli.zig | |
| parent | aded86e6909e01dfb45b35204e9dedf6aabb3d58 (diff) | |
| download | zig-a337046832b936d912b6902e331cb58bdc513a2d.tar.gz zig-a337046832b936d912b6902e331cb58bdc513a2d.zip | |
stage2: properly handle zig cc used as a preprocessor
This cleans up how the CLI parses and handles -E, -S, and -c.
Compilation explicitly acknowledges when it is being used to do C
preprocessing.
-S is properly translated to -fno-emit-bin -femit-asm but Compilation
does not yet handle -femit-asm.
There is not yet a mechanism for skipping the linking step when there is
only a single object file, and so to make this work we have to do a file
copy in link.flush() to copy the file from zig-cache into the output
directory.
Diffstat (limited to 'test/cli.zig')
0 files changed, 0 insertions, 0 deletions
