0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/compiler
Eric Joldasov 9688e6e620 Resolve relative install directories against install prefix
This fixes a regression introduced on the master branch in commit
0505318efe
(PR https://codeberg.org/ziglang/zig/pulls/35428).

In Zig 0.16 and earlier, overriding install sub-directories (such as
`--prefix-lib-dir`) with a relative path correctly resolved them
against the "install prefix". The mentioned PR changed this behavior
(though this was not mentioned in its description), causing relative
path overrides to resolve against the "current working directory"
instead.

This commit restores the old behavior and brings the logic back in line
with existing build system conventions (CMake, Autotools, Meson):

* Absolute paths are used as-is.
* Relative paths are resolved relative to the install
  prefix path, rather than CWD.

Ecosystem context:
https://github.com/mesonbuild/meson/pull/9903

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
History 2026-08-04 17:04:27 -07:00
..
aro llvm: update for compiler_rt abi changes 2026-07-27 14:38:34 -04:00
Maker Maker.ScannedConfig: update for changed Configuration types 2026-08-04 17:00:10 -07:00
reduce Replace usages of StringArrayHashMapUnmanaged with array_hash_map.String 2026-06-10 16:14:53 +02:00
resinator compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
translate-c std.lang: rename OptimizeMode to Optimize 2026-07-20 17:26:50 -07:00
configurer.zig zig build: handle passing cwd path to child processes 2026-07-03 19:33:57 +02:00
Maker.zig Resolve relative install directories against install prefix 2026-08-04 17:04:27 -07:00
objcopy.zig std.zig.Server: remove init function 2026-07-21 14:34:41 +02:00
objdump.zig zig fmt 2026-07-17 23:30:26 +02:00
reduce.zig llvm: update for compiler_rt abi changes 2026-07-27 14:38:34 -04:00
std-docs.zig std.zig.Client: introduction 2026-07-21 14:34:40 +02:00
test_runner.zig Merge pull request 'Implement foundation of the build system protocol' (#36147) from Techatrix/zig:build-system-protocol into master 2026-08-05 01:42:28 +02:00
util.zig - aroDiagnosticsToErrorBundle: fixup not clearing notes after flushing the current error 2025-10-09 13:34:25 -04:00