zig/test/standalone
Pat Tullmann e8503ecb65 Default std.posix.system.ucontext_t is void
PR https://github.com/ziglang/zig/pull/20679 ("std.c reorganization")
switched feature-detection code to use "T != void" checks in place of
"@hasDecl".  However, the std.posix.system struct is empty, so
compile-time feature detection against symbols in there (specifically
`std.posix.system.ucontext_t` in this case), fail at compile time on
freestanding targets.

This PR adds a void ucontext_t into the std.posix.system default.

This PR also adds pseudo-"freestanding" variation of the StackIterator
"unwind" test.  It is sort of hacky (its freestanding, but assumes it can
invoke a Linux exit syscall), but it does detect this problem.

Fixes #20710
2024-07-23 11:47:29 -07:00
..
c_compiler Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
child_process Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
cmakedefine make zig compiler processes live across rebuilds 2024-07-14 19:51:16 -07:00
coff_dwarf Build: cleanup 2024-05-05 09:42:51 -04:00
compiler_rt_panic remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
dep_diamond Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
dep_duplicate_module update test build script to latest API 2024-07-01 16:38:02 -07:00
dep_lazypath build: fix WriteFile and addCSourceFiles not adding LazyPath deps 2024-07-04 13:34:17 -04:00
dep_mutually_recursive Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
dep_recursive Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
dep_shared_builtin Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
dep_triangle Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
depend_on_main_mod remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
dependencyFromBuildZig do more robust import 2024-04-18 11:24:42 -07:00
dirname standalone: support relative cache path 2024-05-08 19:37:03 -07:00
embed_generated_file remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
emit_asm_and_bin Build: cleanup 2024-05-05 09:42:51 -04:00
empty_env Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
extern Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
global_linkage Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
install_headers remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
install_raw_hex remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
ios test/standalone: fix iOS smoke test 2024-05-13 08:55:27 +02:00
issue_339 Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
issue_794 remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
issue_5825 Build: cleanup 2024-05-05 09:42:51 -04:00
issue_8550 remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
issue_11595 Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
issue_12588 Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
issue_12706 Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
issue_13970 Build: cleanup 2024-05-05 09:42:51 -04:00
libcxx libcxx: fix building when -fsingle-threaded 2024-06-08 15:34:19 -04:00
load_dynamic_library Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
mix_c_files Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
mix_o_files Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
options Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
pie remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
pkg_import Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
run_output_caching test: update make functions to use MakeOptions 2024-07-21 11:22:14 -07:00
run_output_paths Run: add output directory arguments 2024-05-05 15:58:08 -04:00
self_exe_symlink Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
shared_library Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
sigpipe Build: cleanup 2024-05-05 09:42:51 -04:00
simple remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
stack_iterator Default std.posix.system.ucontext_t is void 2024-07-23 11:47:29 -07:00
static_c_lib Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
strip_empty_loop Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
strip_struct_init remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
test_runner_module_imports remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
test_runner_path remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
use_alias remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
windows_argv Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
windows_bat_args Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
windows_entry_points remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
windows_resources Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
windows_spawn Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
zerolength_check remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
build.zig remove deprecated LazyPath.path union tag 2024-04-11 14:02:47 -07:00
build.zig.zon test: check output file caching of run steps with side-effects 2024-07-21 02:03:32 -07:00