zig/src
Andrew Kelley a337046832 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.
2020-09-25 20:52:02 -07:00
..
codegen rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
link stage2: properly handle zig cc used as a preprocessor 2020-09-25 20:52:02 -07:00
stage1 stage2: implement @cImport 2020-09-24 16:22:45 -07:00
Cache.zig stage2: implement @cImport 2020-09-24 16:22:45 -07:00
Compilation.zig stage2: properly handle zig cc used as a preprocessor 2020-09-25 20:52:02 -07:00
DepTokenizer.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
Module.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
Package.zig stage2: implement --pkg-begin and --pkg-end CLI args 2020-09-22 23:00:33 -07:00
TypedValue.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
astgen.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
clang.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
clang_options.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
clang_options_data.zig stage2: properly handle zig cc used as a preprocessor 2020-09-25 20:52:02 -07:00
codegen.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
config.zig.in delete all stage1 c++ code not directly related to compiling stage2 2020-09-17 18:29:38 -07:00
glibc.zig stage2: building musl libc from source 2020-09-23 20:48:47 -07:00
introspect.zig stage2: implement using the global cache dir 2020-09-22 14:08:08 -07:00
ir.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
libc_installation.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
libcxx.zig fix a round of regressions in this branch 2020-09-24 23:50:15 -07:00
libunwind.zig fix a round of regressions in this branch 2020-09-24 23:50:15 -07:00
link.zig stage2: properly handle zig cc used as a preprocessor 2020-09-25 20:52:02 -07:00
liveness.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
llvm.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
main.zig stage2: properly handle zig cc used as a preprocessor 2020-09-25 20:52:02 -07:00
musl.zig stage2: building musl libc from source 2020-09-23 20:48:47 -07:00
print_env.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
print_targets.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
stage1.zig don't delete C import .c source from zig-cache 2020-09-24 21:13:01 -07:00
target.zig stage2: don't build libunwind on OS's that don't need it 2020-09-23 11:15:27 -07:00
test.zig fix a round of regressions in this branch 2020-09-24 23:50:15 -07:00
tracy.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
translate_c.zig Merge remote-tracking branch 'origin/master' into stage2-zig-cc 2020-09-21 21:16:46 -07:00
type.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
value.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
windows_com.hpp compiling on mingw is now supported (#1542) 2018-09-18 00:13:17 -04:00
windows_sdk.cpp fixed mingw compilation 2018-10-27 11:35:01 -04:00
windows_sdk.h fix regressed stage2 test harness 2020-09-21 21:14:01 -07:00
windows_sdk.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
zig_clang.cpp eliminate dependency of libzigcpp.a on libzigstage1.a 2020-09-23 00:00:24 -07:00
zig_clang.h fix regressed stage2 test harness 2020-09-21 21:14:01 -07:00
zig_clang_cc1_main.cpp update clang drivers to llvm10.0.0rc2 2020-02-14 10:47:40 -05:00
zig_clang_cc1as_main.cpp update clang drivers to llvm10.0.0rc2 2020-02-14 10:47:40 -05:00
zig_clang_driver.cpp update clang driver to release/10.x branch 2020-01-29 23:38:21 -05:00
zig_llvm.cpp change the default ABI of riscv64-linux-musl 2020-04-03 13:13:09 -04:00
zig_llvm.h revert bogus `enum` keywords in zig_llvm.h 2020-09-14 10:31:34 -07:00
zir.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
zir_sema.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00