From 04f752e5b8f6a6a3318f7f8898a993759bd8219e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 30 Oct 2024 11:12:00 -0400 Subject: [PATCH] PACKAGING: recommend -Dtarget --- PACKAGING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PACKAGING.md b/PACKAGING.md index 5e6560c34..f31252272 100644 --- a/PACKAGING.md +++ b/PACKAGING.md @@ -91,3 +91,8 @@ relevant to package maintainers: - `-Dcpu=baseline`: Build for the "baseline" CPU of the target architecture. This avoids building for newer CPU features that may not be available on all target machines. + +- `-Dtarget=$arch-$os-$abi`: Build for a specific target triple. This is + often necessary for system packages to specify a specific minimum Linux + version, glibc, etc. Run `zig targets` to a get a full list of available + targets.