fix overridden pkg dir path

the previous code made it relative to the build directory

also add a corresponding env var and logic for build command
This commit is contained in:
Andrew Kelley
2026-04-20 11:32:11 -07:00
parent 5586a1f4ee
commit f887bea4d3
2 changed files with 14 additions and 4 deletions
+1
View File
@@ -744,6 +744,7 @@ pub fn parseTargetQueryOrReportFatalError(
pub const EnvVar = enum {
ZIG_GLOBAL_CACHE_DIR,
ZIG_LOCAL_CACHE_DIR,
ZIG_LOCAL_PKG_DIR,
ZIG_LIB_DIR,
ZIG_LIBC,
ZIG_BUILD_RUNNER,