@@ -70,14 +70,13 @@ In this case, the only system dependency is a C compiler.
70
70
71
71
```
72
72
cc -o bootstrap bootstrap.c
73
- ./bootstrap build
73
+ ./bootstrap
74
74
```
75
75
76
- You can pass any options to this that you would pass to ` zig build ` (see
77
- ` --help ` for options).
78
-
79
- [ Without LLVM extensions] ( https://github.com/ziglang/zig/issues/16270 ) , a Zig
80
- compiler is missing these features:
76
+ This produces a ` zig2 ` executable in the current working directory. This is a
77
+ "stage2" build of the compiler,
78
+ [ without LLVM extensions] ( https://github.com/ziglang/zig/issues/16270 ) , and is
79
+ therefore lacking these features:
81
80
- Release mode optimizations
82
81
- aarch64 machine code backend
83
82
- ` @cImport ` / ` zig translate-c `
@@ -86,14 +85,17 @@ compiler is missing these features:
86
85
- [ Some ELF linking features] ( https://github.com/ziglang/zig/issues/17749 )
87
86
- [ Most COFF/PE linking features] ( https://github.com/ziglang/zig/issues/17751 )
88
87
- [ Some WebAssembly linking features] ( https://github.com/ziglang/zig/issues/17750 )
89
- - [ COFF linking] ( https://github.com/ziglang/zig/issues/17751 )
90
88
- [ Ability to output LLVM bitcode] ( https://github.com/ziglang/zig/issues/13265 )
91
89
- [ Windows resource file compilation] ( https://github.com/ziglang/zig/issues/17752 )
92
90
- [ Ability to create import libs from def files] ( https://github.com/ziglang/zig/issues/17807 )
93
91
- [ Automatic importlib file generation for Windows DLLs] ( https://github.com/ziglang/zig/issues/17753 )
94
92
- [ Ability to create static archives from object files] ( https://github.com/ziglang/zig/issues/9828 )
95
93
- Ability to compile C++, Objective-C, and Objective-C++ files
96
94
95
+ However, a compiler built this way does provide a C backend, which may be
96
+ useful for creating system packages of Zig projects using the system C
97
+ toolchain. In such case, LLVM is not needed!
98
+
97
99
## Contributing
98
100
99
101
[ Donate monthly] ( https://ziglang.org/zsf/ ) .
0 commit comments