aboutsummaryrefslogtreecommitdiff
path: root/test/cli.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-25 20:52:02 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-25 20:52:02 -0700
commita337046832b936d912b6902e331cb58bdc513a2d (patch)
tree2475300223038682fad3477d5e59473b78992a5b /test/cli.zig
parentaded86e6909e01dfb45b35204e9dedf6aabb3d58 (diff)
downloadzig-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