aboutsummaryrefslogtreecommitdiff
path: root/PACKAGING.md
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-05-22 16:17:55 +0200
committerIsaac Freund <mail@isaacfreund.com>2022-05-22 16:17:55 +0200
commit71ba891850cc046335870a67012e195226cd84c4 (patch)
tree4b5113903ed7ffaac14d9a23fc813e5967d2e544 /PACKAGING.md
parentd0625d668ad826d014a35e6c24b9ac16f7032ec7 (diff)
downloadriver-71ba891850cc046335870a67012e195226cd84c4.tar.gz
river-71ba891850cc046335870a67012e195226cd84c4.tar.xz
docs: expand on -Dcpu in PACKAGING.md
Diffstat (limited to 'PACKAGING.md')
-rw-r--r--PACKAGING.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/PACKAGING.md b/PACKAGING.md
index c306bab..9b4609f 100644
--- a/PACKAGING.md
+++ b/PACKAGING.md
@@ -37,7 +37,17 @@ at a minimum must be passed.
Here are a few other options that are particularly relevant to packagers:
-- `-Dcpu=baseline`: Target the baseline CPU, or any other set of CPU features.
+- `-Dcpu=baseline`: Build for the "baseline" CPU of the target architecture,
+or any other CPU/feature set (e.g. `-Dcpu=x86_64_v2`).
+
+ - Individual features can be added/removed with `+`/`-`
+ (e.g. `-Dcpu=x86_64+avx2-cmov`).
+
+ - For a list of CPUs see for example `zig targets | jq '.cpus.x86_64 |
+ keys'`.
+
+ - For a list of features see for example `zig targets | jq
+ '.cpusFeatures.x86_64'`.
- `-Dtarget=x86_64-linux-gnu`: Target architecture, OS, and ABI triple. See
the output of `zig targets` for an exhaustive list of targets and CPU features,