CMakeLists.txt | 6 +- ci/x86_64-windows-debug.ps1 | 3 +- ci/x86_64-windows-release.ps1 | 3 +- lib/std/Build/CompileStep.zig | 127 +++++++++++++++--- src/Autodoc.zig | 10 +- src/Compilation.zig | 222 ++++++++++++++++++++------------ src/Module.zig | 69 ++++++---- src/Package.zig | 123 +++++++++++++----- src/Sema.zig | 6 +- src/main.zig | 208 +++++++++++++++++++----------- src/test.zig | 40 +++++- stage1/zig1.wasm | Bin 2388586 -> 2408069 bytes test/compile_errors.zig | 22 ++++ test/stage2/nvptx.zig | 1 + test/standalone.zig | 6 + test/standalone/dep_diamond/bar.zig | 1 + test/standalone/dep_diamond/build.zig | 28 ++++ test/standalone/dep_diamond/foo.zig | 1 + test/standalone/dep_diamond/shared.zig | 1 + test/standalone/dep_diamond/test.zig | 7 + test/standalone/dep_mutually_recursive/bar.zig | 6 + test/standalone/dep_mutually_recursive/build.zig | 26 ++++ test/standalone/dep_mutually_recursive/foo.zig | 6 + test/standalone/dep_mutually_recursive/test.zig | 7 + test/standalone/dep_recursive/build.zig | 22 ++++ test/standalone/dep_recursive/foo.zig | 6 + test/standalone/dep_recursive/test.zig | 8 ++ test/standalone/dep_shared_builtin/build.zig | 19 +++ test/standalone/dep_shared_builtin/foo.zig | 3 + test/standalone/dep_shared_builtin/test.zig | 11 ++ test/standalone/dep_triangle/build.zig | 25 ++++ test/standalone/dep_triangle/foo.zig | 1 + test/standalone/dep_triangle/shared.zig | 1 + test/standalone/dep_triangle/test.zig | 7 + 34 files changed, 784 insertions(+), 248 deletions(-)