0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Luuk de Gram fd26c12469
RunCompareStep: implement new step
This creates a new step that can run foreign binaries when
emulation is enabled using options such as `enable_qemu`.
When an incompatible binary is found, the binary will not be executed.
This differs from `RunStep` which will always execute a binary,
regardless of the compatibility.

This is useful for usecases where the user wishes to allow for running the
binary on any supported platform either natively or through emulation,
but not generate an error when met with an incompatibility.
The above is useful when creating test cases that rely on running the binary
and optionally verifying its output.

The addition of this Step was generated by the need for our linker tests.
For that reason, a handy function was created on `CheckObjectStep` to ease
the setup for that.
History 2022-07-23 10:03:46 +02:00
..
atomic std: replace usage of std.meta.bitCount() with @bitSizeOf() 2022-04-27 11:10:52 +02:00
build RunCompareStep: implement new step 2022-07-23 10:03:46 +02:00
c add FreeBSD support to std.os.getFdPath 2022-07-15 10:16:31 +03:00
compress stage2: make error{} the same size as anyerror 2022-06-11 23:49:33 +03:00
crypto crypto.sign.ed25519: add support for blind key signatures (#11868) 2022-07-08 13:21:37 +02:00
dwarf wasm: Implement debug info for parameters 2022-05-09 18:51:46 +02:00
event std.event: use .{} to initiate Lock to unlocked state 2022-07-01 00:09:36 +03:00
fmt std.fmt.parse_float: disable failing aarch64 test from LLVM 14 2022-07-06 16:23:42 -07:00
fs std.fs: remove OpenDirOptions.iterate 2022-07-15 14:39:21 +03:00
hash disable std lib test failing with self-hosted ReleaseSafe 2022-07-20 12:50:58 -07:00
heap Move sys_can_stack_trace from GPA to std.debug so that it can be re-used as needed 2022-06-25 21:27:56 -07:00
http std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
io std: update test cases to reflect new packed struct semantics 2022-07-12 18:38:11 -07:00
json std.json: move tests to json/test.zig file 2022-07-07 00:05:21 -07:00
math Use Managed.len in sub, divFloor, and divTrunc too 2022-07-16 11:46:13 +09:00
mem Allocator: correct PanicFree function name 2022-05-02 15:29:27 -04:00
meta std.meta.TrailerFlags: improve init type 2022-05-04 21:26:48 +02:00
net AstGen: fix loop control flow applying to wrong loop 2022-07-13 16:10:41 -07:00
os LLVM: fix lowering of structs with underaligned fields 2022-07-21 22:51:17 -07:00
rand crypto: add the Xoodoo permutation, prepare for Gimli deprecation (#11866) 2022-07-01 13:18:08 +02:00
target update CPU features to LLVM 14 2022-07-01 21:35:19 -07:00
testing Move sys_can_stack_trace from GPA to std.debug so that it can be re-used as needed 2022-06-25 21:27:56 -07:00
Thread math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
time std.time.epoch: fix issue in documentation 2021-12-16 19:08:58 -08:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
valgrind remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
x LLVM: fix lowering of structs with underaligned fields 2022-07-21 22:51:17 -07:00
zig macos: add /usr/local/* paths conditional on macOS major version 2022-07-22 14:11:23 -07:00
array_hash_map.zig Sema: solve a false positive "depends on itself" 2022-05-06 22:40:57 -07:00
array_list.zig std.ArrayList: use variable for local mutable state 2022-03-11 22:47:24 -07:00
ascii.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
atomic.zig std.Thread.Futex improvements (#11464) 2022-04-19 19:42:15 -05:00
base64.zig std.base64: upgrade to new function pointer semantics 2022-03-30 20:38:01 -07:00
bit_set.zig stage2: check that struct is a tuple when value tags differ in eql 2022-06-17 21:04:21 +03:00
bounded_array.zig std/bounded_array.zig: Add Writer interface 2022-04-14 02:56:40 -04:00
buf_map.zig reverse some of the now unneeded changes from squeek 2022-05-11 18:41:23 -06:00
buf_set.zig std.BufSet.clone: fix key ownership 2022-03-01 13:28:47 -05:00
build.zig RunCompareStep: implement new step 2022-07-23 10:03:46 +02:00
builtin.zig std.builtin.returnError: disable runtime safety 2022-07-07 18:24:34 -07:00
c.zig std.c: Move Darwin-unspecific functions from std/c/darwin.zig to std/c.zig 2022-05-07 00:02:15 +09:00
child_process.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
coff.zig std.coff: parse out codebase and entrypoint from optionalheader 2022-04-28 18:31:20 +03:00
compress.zig stage2: small fixes + adjustments to std tests 2022-06-11 23:49:33 +03:00
comptime_string_map.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
crypto.zig crypto: add the Xoodoo permutation, prepare for Gimli deprecation (#11866) 2022-07-01 13:18:08 +02:00
cstr.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
debug.zig Merge pull request #11919 from squeek502/failing-allocator-stacktrace 2022-06-28 14:44:00 -04:00
dwarf.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
dynamic_library.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
elf.zig target: Rename sparcv9 -> sparc64 2022-05-13 16:43:59 -04:00
enums.zig deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
event.zig std, compiler-rt: remove test names where applicable 2021-09-01 17:54:06 -07:00
fifo.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
fmt.zig Fix #9184: fmtIntSizeDec/fmtIntSizeBin support FormatOptions 2022-07-21 18:41:21 +03:00
fs.zig std.fs: remove accidental comptime block 2022-07-17 11:54:13 +03:00
hash.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
hash_map.zig std: fix missing hash map safety 2022-04-20 17:18:06 -07:00
heap.zig std: update tests to stage2 semantics 2022-06-03 20:21:20 +03:00
http.zig std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
io.zig stage2: progress towards stage3 2022-04-14 10:12:45 -07:00
json.zig std.json: move tests to json/test.zig file 2022-07-07 00:05:21 -07:00
leb128.zig std.leb128: disable regressed test due to LLVM 14 2022-07-06 20:12:00 -07:00
linked_list.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
log.zig std.log: deduplicate switch 2022-07-09 15:19:03 +03:00
macho.zig macho: Pass sections by pointer when slicing names 2022-07-20 03:45:29 -04:00
math.zig std.math: add degreesToRadians and radiansToDegrees 2022-07-11 16:40:05 +03:00
mem.zig std: update test cases to reflect new packed struct semantics 2022-07-12 18:38:11 -07:00
meta.zig std: update tests to stage2 semantics 2022-06-03 20:21:20 +03:00
multi_array_list.zig std.MultiArrayList: add functions addOne, pop, and popOrNull (#11553) 2022-04-29 22:51:53 -04:00
net.zig std: adjust for stage2 semantics 2022-06-07 21:27:07 +03:00
once.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
os.zig std.fs: remove OpenDirOptions.iterate 2022-07-15 14:39:21 +03:00
packed_int_array.zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
pdb.zig std.pdb: fix incorrect use of packed struct 2022-05-02 22:06:02 -07:00
priority_dequeue.zig std.priority_dequeue: allow comparator to take a context parameter 2021-12-15 17:46:10 -08:00
priority_queue.zig PriorityQueue: use compareFn in update() 2022-07-22 19:25:38 +03:00
process.zig Sema: validate deref operator type and value 2022-07-01 10:22:25 +03:00
Progress.zig std.Progress.log: adjust API 2022-05-26 21:58:19 -07:00
rand.zig crypto: add the Xoodoo permutation, prepare for Gimli deprecation (#11866) 2022-07-01 13:18:08 +02:00
segmented_list.zig std: disable tests that crash stage2 2022-06-03 20:21:20 +03:00
SemanticVersion.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
simd.zig SIMD size suggestions: suggestions code now compiles, added more 2022-07-22 18:58:43 +03:00
sort.zig std: add sort method to ArrayHashMap and MultiArrayList 2022-03-10 13:13:17 -05:00
start.zig Sema: validate extern types 2022-07-11 18:47:29 +03:00
start_windows_tls.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
std.zig std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
target.zig update CPU features to LLVM 14 2022-07-01 21:35:19 -07:00
testing.zig std.testing: add refAllDeclsRecursive function 2022-07-16 12:33:25 +03:00
Thread.zig std.Thread: fix mutable ref of temporary 2022-07-04 16:53:41 -07:00
time.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
treap.zig treap: zig fmt 2022-04-15 17:01:01 -05:00
tz.zig std.tz: fix function returning pointer to local variable 2022-06-17 21:04:21 +03:00
unicode.zig Sema: handle tuple and anon_struct in resolveTypeFully 2022-06-11 11:02:56 +03:00
valgrind.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
wasm.zig wasm: Implement memset, and sret arguments. 2022-01-04 17:59:05 +01:00
x.zig stage2: small fixes + adjustments to std tests 2022-06-11 23:49:33 +03:00
zig.zig Compilation: do not repeat same source line for notes 2022-07-10 23:47:56 +03:00