0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Andrew Kelley 5a65caa2a3 ability to build stage1 using only a zig tarball
The main idea here is that there are now 2 ways to get a stage1 zig
binary:

 * The cmake path. Requirements: cmake, system C++ compiler, system
   LLVM, LLD, Clang libraries, compiled by the system C++ compiler.

 * The zig path. Requirements: a zig installation, system LLVM, LLD,
   Clang libraries, compiled by the zig installation.

Note that the former can be used to now take the latter path.

Removed config.h.in and config.zig.in. The build.zig script no longer is
coupled to the cmake script.

cmake no longer tries to determine the zig version. A build with cmake
will yield a stage1 zig binary that reports 0.0.0+zig0. This is going to
get reverted.

`zig build` now accepts `-Dstage1` which will build the stage1 compiler,
and put the stage2 backend behind a feature flag.

build.zig is simplified to only support the use case of enabling LLVM
support when the LLVM, LLD, and Clang libraries were built by zig. This
part is probably sadly going to have to get reverted to make package
maintainers happy.

Zig build system addBuildOption supports a couple new types.

The biggest reason to make this change is that the zig path is an
attractive option for doing compiler development work on Windows. It
allows people to work on the compiler without having MSVC installed,
using only a .zip file that contains Zig + LLVM/LLD/Clang libraries.
History 2020-12-07 17:27:09 -07:00
..
atomic std: add std.atomic.Bool 2020-11-19 00:58:13 +11:00
build remove deprecated uses of ArrayList.span 2020-11-07 11:15:44 +00:00
c move std.SegmentedList to the std-lib-orphanage 2020-11-30 13:04:26 -07:00
compress std/deflate: Avoid reading past end of stream 2020-10-29 17:16:03 +01:00
crypto std/crypto - edwards25519 precomp: prefer doublings over adds 2020-11-25 15:37:43 -08:00
event linuxWaitFd: make NetworkSubsystemFailed error unreachable 2020-11-16 14:03:19 -08:00
fmt std: Implement more useful approxEq semantics 2020-11-05 16:08:49 +01:00
fs add AddressFamilyNotSupported to SendError 2020-12-07 16:40:03 -05:00
hash Change seed for Murmur2_64 from u32 to u64 2020-11-18 17:05:38 -08:00
heap Gpa mutex configurable (#7234) 2020-12-03 15:49:35 -05:00
io Make zig fmt happy with multiline arguments for readAllArrayListAligned 2020-12-03 10:24:49 +00:00
json Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
math Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
mem use Allocator.allocSentinel now that the stage1 bug is fixed 2020-09-29 12:06:35 -07:00
meta Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
net More fixups for Windows targets 2020-10-28 10:03:23 +01:00
os add std.os.shutdown function for sockets 2020-11-30 11:25:03 -08:00
rand add license header to all std lib files 2020-08-20 16:07:04 -04:00
special std: Use correct clone() stub 2020-11-20 08:38:10 +01:00
target Use correct names for generic SPARC targets 2020-10-24 20:03:41 +07:00
testing add license header to all std lib files 2020-08-20 16:07:04 -04:00
time add license header to all std lib files 2020-08-20 16:07:04 -04:00
unicode std: Make utf8CountCodepoints much faster 2020-11-05 16:10:34 +01:00
valgrind add license header to all std lib files 2020-08-20 16:07:04 -04:00
zig std.meta: add assumeSentinel 2020-11-29 10:36:02 -08:00
array_hash_map.zig std: Re-enable ArrayHashMap test for mips targets 2020-11-02 11:46:07 +01:00
array_list.zig make ArrayList.span into a compile error 2020-11-07 11:15:47 +00:00
array_list_sentineled.zig remove deprecated uses of ArrayList.span 2020-11-07 11:15:44 +00:00
ascii.zig std: Add a few helpers for matching ascii strings (#7300) 2020-12-04 15:27:28 -05:00
atomic.zig std: add std.atomic.Bool 2020-11-19 00:58:13 +11:00
auto_reset_event.zig Add more comments & cleanup AutoResetEvent 2020-10-11 19:16:07 -05:00
base64.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
buf_map.zig fix memory leak in BufMap 2020-11-30 10:40:16 -08:00
buf_set.zig hash_map: rename to ArrayHashMap and add new HashMap implementation 2020-09-02 00:17:50 +02:00
build.zig ability to build stage1 using only a zig tarball 2020-12-07 17:27:09 -07:00
builtin.zig stage1: Initial implementation of @extern 2020-11-20 22:32:43 +01:00
c.zig std.c: freeing null is a no-op 2020-12-07 16:33:27 -05:00
child_process.zig std: Fix file locking logic for BSD targets 2020-11-23 18:00:05 +01:00
coff.zig remove deprecated uses of ArrayList.span 2020-11-07 11:15:44 +00:00
compress.zig std: Add a gzip decoder 2020-09-11 20:02:41 -04:00
comptime_string_map.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
crypto.zig std/crypto: add ISAPv2 (ISAP-A-128a) AEAD 2020-11-16 16:02:19 -08:00
cstr.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
debug.zig makes the implementation public 2020-12-03 15:14:59 -08:00
dwarf.zig Merge pull request #7005 from jshholland/deprecate-span 2020-11-18 13:14:48 +02:00
dwarf_bits.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
dynamic_library.zig Fix WindowsDynLib.openW trying to strip the \??\ prefix when it does not exist 2020-11-30 11:12:33 -08:00
elf.zig Merge branch 'piepiepie' of https://github.com/LemonBoy/zig into pie 2020-11-22 12:39:44 -07:00
event.zig std/event: Fix import path for WaitGroup 2020-12-03 12:43:55 -08:00
fifo.zig Merge pull request #6434 from daurnimator/fifo.pump 2020-11-18 16:35:13 +02:00
fmt.zig std: Implement named arguments & runtime width/precision 2020-11-20 08:36:47 +01:00
fs.zig fix the tinyest typo 2020-12-02 19:08:25 +02:00
hash.zig Promote hash/siphash to crypto/siphash 2020-08-22 02:47:50 -04:00
hash_map.zig std: fix HashMap.clearRetainingCapacity 2020-11-11 14:05:43 +02:00
heap.zig add std.heap.raw_c_allocator 2020-11-18 22:09:34 -07:00
io.zig zig fmt: Remove dynamic stack from auto-indenting-stream 2020-08-31 23:39:50 +10:00
json.zig Merge pull request #7005 from jshholland/deprecate-span 2020-11-18 13:14:48 +02:00
leb128.zig Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
linked_list.zig std: remove init functions from linked list nodes 2020-08-22 02:47:39 -04:00
log.zig fix another round of regressions in this branch 2020-09-26 21:03:38 -07:00
macho.zig stage2 macho: generate a code sig (not valid yet) 2020-11-26 11:50:09 +01:00
math.zig Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
mem.zig Merge pull request #7084 from xackus/mem-volatile 2020-11-18 13:06:35 +02:00
meta.zig std.meta: add assumeSentinel 2020-11-29 10:36:02 -08:00
mutex.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
net.zig Localhost is special (#6955) 2020-12-01 19:13:59 -05:00
once.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
os.zig add AddressFamilyNotSupported to SendError 2020-12-07 16:40:03 -05:00
packed_int_array.zig Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
pdb.zig remove deprecated uses of ArrayList.span 2020-11-07 11:15:44 +00:00
priority_queue.zig removing redundant assert 2020-09-22 05:12:21 -07:00
process.zig Switch to using unicode when parsing the command line on windows (#7241) 2020-11-30 13:47:01 -05:00
progress.zig Introduces a space after the ellipsis for test and progress. 2020-09-03 18:07:30 -04:00
rand.zig Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
reset_event.zig std: Disable _only_ the flaky part of the ResetEvent test 2020-11-19 15:46:20 -07:00
SemanticVersion.zig std: Introduce SemanticVersion data structure 2020-11-06 15:07:48 -05:00
sort.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
spinlock.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
start.zig make start code more versatile 2020-11-24 19:51:24 -07:00
start_windows_tls.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
std.zig move std.SegmentedList to the std-lib-orphanage 2020-11-30 13:04:26 -07:00
target.zig stage2: Use correct ppc generic feature set 2020-11-20 08:38:10 +01:00
testing.zig std: Fix expectWithinEpsilon with negative values 2020-11-01 14:30:31 -07:00
thread.zig std: make the use of pthread_join POSIX-compliant 2020-12-02 10:59:35 +01:00
time.zig std: Fix early overflow in time calculation 2020-11-01 17:06:14 -05:00
unicode.zig Switch to using unicode when parsing the command line on windows (#7241) 2020-11-30 13:47:01 -05:00
valgrind.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
zig.zig std: remove renderStringLiteral in favor of std.fmt specifier 2020-10-17 23:20:38 +03:00