zig/lib/std
Isaac Freund 38d6e1d8a8 std.build: Fix transitive linkSystemLibraryName() dependencies
Currently transitive system library dependencies are always linked using
linkSystemLibrary() and therefore pkg-config even if they were
originally specified with linkSystemLibraryName() instead. This causes
problems in practice for projects needing total control over exactly
what library is linked, such as the mach game engine.

This is fixed by keeping track of whether libraries are to be linked
with pkg-config or not and holding off on actually running pkg-config
until after transitive dependency resolution in LibExeObjStep.make().

This also fixes a separate issue with the pkg-config handling that could
cause partial application of pkg-config flags if the first part of the
pkg-config output parses correctly but there is an error later on. This
error isn't always fatal as we fall back to a plain -lfoo in the case of
linkSystemLibrary().
2022-04-12 06:12:44 -04:00
..
atomic allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
build std.build: fix functions returning address of by value parameter 2022-03-28 13:06:11 -07:00
c stage2: disable default panic handler when linking -lc 2022-03-20 00:36:44 -07:00
compress zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
crypto crypto/x25519: implement clearCofactor() (#11355) 2022-04-07 10:46:23 +02:00
dwarf std.dwarf: implement basic DWARF 5 parsing 2022-03-15 16:53:45 -04:00
event std.event.WaitGroup: fix compilation (acquire->lock, release->unlock) 2022-04-11 03:02:41 -04:00
fmt std.{fmt, math}: derive float constants from std 2022-04-06 15:50:36 +02:00
fs Add std.fs.File.sync (#11410) 2022-04-12 05:32:45 -04:00
hash deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
heap Sema: implement zirSwitchCaptureElse for error sets 2022-03-19 15:49:27 +02:00
io deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
json allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
math std.{fmt, math}: derive float constants from std 2022-04-06 15:50:36 +02:00
mem zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
meta std.meta.trait: remove assumption about vector ABI size 2022-03-24 18:09:45 -07:00
net Check for isDarwin() instead of linked libc 2022-01-14 13:44:38 +01:00
os zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
rand Add argument for fillFn to Random.init 2021-10-29 19:20:31 -04:00
special replace other uses of std.meta.Vector with @Vector (#11346) 2022-03-30 14:12:14 -04:00
target update target CPU features with LLVM 13 rc1 data 2021-08-15 23:09:55 -07:00
testing allocgate: change resize to return optional instead of error 2021-11-30 23:45:01 +00:00
Thread std: add Thread.Condition.timedWait (#11352) 2022-04-08 13:26:56 -05: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 zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
array_hash_map.zig std.ArrayHashMap: lazier verifyContext calls 2022-04-02 19:18:41 -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 migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
base64.zig std.base64: upgrade to new function pointer semantics 2022-03-30 20:38:01 -07:00
bit_set.zig deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
bounded_array.zig std.BoundedArray: return explicit errors (#11044) 2022-03-03 19:39:45 +01:00
buf_map.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
buf_set.zig std.BufSet.clone: fix key ownership 2022-03-01 13:28:47 -05:00
build.zig std.build: Fix transitive linkSystemLibraryName() dependencies 2022-04-12 06:12:44 -04:00
builtin.zig stage2: disable default panic handler when linking -lc 2022-03-20 00:36:44 -07:00
c.zig Add sem_open & sem_close 2022-03-23 16:31:03 -04:00
child_process.zig std.testing: add methods tmpDirPath, getTestArgs, buildExe 2022-03-27 11:43:40 +03:00
coff.zig std: Add elf.EM, coff.MachineType to Target.CPU.Arch conversions 2022-03-15 13:48:42 -04:00
compress.zig compress: add a deflate compressor 2022-01-23 19:30:06 +01:00
comptime_string_map.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
crypto.zig a small crusade against std.meta.declarations 2022-01-31 22:25:49 -07:00
cstr.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
debug.zig Pull elf magic string out to re-used constant 2022-04-04 15:33:24 +03:00
dwarf.zig Remove a std.debug.print from the dwarf.zig file 2022-03-30 19:35:20 -04:00
dynamic_library.zig Pull elf magic string out to re-used constant 2022-04-04 15:33:24 +03:00
elf.zig Pull elf magic string out to re-used constant 2022-04-04 15:33:24 +03: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 std.fmt: Fix incorrect behavior with large floating point integers. 2022-04-04 16:04:35 -04:00
fs.zig std.fs: Handle EINVAL from linux.getdents64 2022-03-27 11:24:31 +03:00
hash.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
hash_map.zig std.hash_map: workaround for circular dependency 2022-04-01 00:17:02 -07:00
heap.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
io.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
json.zig std.json: correctly handle sentinel terminated slices 2022-03-08 20:43:13 +02:00
leb128.zig I'm working on a WebAssembly interpreter in zig. WebAssembly uses LEB128 encoding throughout its specification. 2021-09-20 01:58:18 -04:00
linked_list.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
log.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
macho.zig macho: set CS_LINKER_SIGNED flag in code signature generated by zld 2022-04-01 14:33:37 +02:00
math.zig derive float constants in a generic way (#10133) 2022-04-06 15:50:36 +02:00
mem.zig std.mem.zeroInit: Fix behaviour with empty initialiser 2022-03-28 14:10:36 +03:00
meta.zig std.meta: fix unit tests depending on unstable behavior 2022-03-24 17:47:39 -07:00
multi_array_list.zig std.MultiArrayList: check size of element, not pointer 2022-03-24 19:55:12 -07:00
net.zig Merge pull request #10576 from schmee/macos-resolve-ip 2022-01-15 00:47:12 +01:00
once.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
os.zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
packed_int_array.zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
pdb.zig Only check the file's length once in pdb.Msf.init 2021-12-21 17:29:23 -08: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 std.priority_queue: allow comparator to take a context parameter 2021-12-15 17:46:04 -08:00
process.zig Avoid depending on child process execution when not supported by host OS 2022-02-06 22:21:46 -07:00
Progress.zig stage2: do not memoize calls that can mutate comptime state 2022-02-27 16:43:53 +02:00
rand.zig Sema: improve detection of generic parameters 2022-03-11 11:25:45 +02:00
SemanticVersion.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
simd.zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
sort.zig std: add sort method to ArrayHashMap and MultiArrayList 2022-03-10 13:13:17 -05:00
start.zig Sema: dummy implementation of @errorReturnTrace 2022-03-21 19:08:30 -07:00
start_windows_tls.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
std.zig std: SIMD utility functions 2022-03-27 11:28:44 +03:00
target.zig replace other uses of std.meta.Vector with @Vector (#11346) 2022-03-30 14:12:14 -04:00
testing.zig Add std.testing.checkAllAllocationFailures 2022-04-04 15:32:43 +03:00
Thread.zig std: rename sched_yield to yield and move it to std.Thread 2022-02-27 15:34:02 -05:00
time.zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
tz.zig Rename mem.bswapAllFields to byteSwapAllFields 2022-01-28 21:03:21 -05:00
unicode.zig Reuse code in Utf8Iterator.nextCodepoint 2022-04-12 05:34:12 -04: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 remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
zig.zig stage2 parser: UTF-8 encode \u{NNNNNN} escape sequences 2022-03-02 14:45:19 -05:00