diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-08 01:11:10 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-09 09:28:05 -0700 |
| commit | 4056bb92e6d6ca3d2ab8f49b4ac83c01fb25bd11 (patch) | |
| tree | 3992ca209d9759c7a041c1c9f58e8572081051da /build.zig | |
| parent | 472ee184862415d1f2651d81d248f3000032932d (diff) | |
| download | zig-4056bb92e6d6ca3d2ab8f49b4ac83c01fb25bd11.tar.gz zig-4056bb92e6d6ca3d2ab8f49b4ac83c01fb25bd11.zip | |
stage2: more progress moving `zig cc` to stage2
* std.cache_hash exposes Hasher type
* std.cache_hash makes hasher_init a global const
* std.cache_hash supports cloning so that clones can share the same
open manifest dir handle as well as fork from shared hasher state
* start to populate the cache_hash for stage2 builds
* remove a footgun from std.cache_hash add function
* get rid of std.Target.ObjectFormat.unknown
* rework stage2 logic for resolving output artifact names by adding
object_format as an optional parameter to std.zig.binNameAlloc
* support -Denable-llvm in stage2 tests
* Module supports the use case when there are no .zig files
* introduce c_object_table and failed_c_objects to Module
* propagate many new kinds of data from CLI into Module and into
linker.Options
* introduce -fLLVM, -fLLD, -fClang and their -fno- counterparts.
closes #6251.
- add logic for choosing when to use LLD or zig's self-hosted linker
* stub code for implementing invoking Clang to build C objects
* add -femit-h, -femit-h=foo, and -fno-emit-h CLI options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -139,6 +139,7 @@ pub fn build(b: *Builder) !void { const is_wasmtime_enabled = b.option(bool, "enable-wasmtime", "Use Wasmtime to enable and run WASI libstd tests") orelse false; const glibc_multi_dir = b.option([]const u8, "enable-foreign-glibc", "Provide directory with glibc installations to run cross compiled tests that link glibc"); + test_stage2.addBuildOption(bool, "have_llvm", enable_llvm); test_stage2.addBuildOption(bool, "enable_qemu", is_qemu_enabled); test_stage2.addBuildOption(bool, "enable_wine", is_wine_enabled); test_stage2.addBuildOption(bool, "enable_wasmtime", is_wasmtime_enabled); |
