Skip to content

Commit f70c380

Browse files
Expand JULIA_CPU_TARGET docs (#58968)
1 parent 33e4e46 commit f70c380

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

doc/src/devdocs/pkgimg.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ Dynamic libraries on macOS need to link against `-lSystem`. On recent macOS vers
3333
To that effect we link with `-undefined dynamic_lookup`.
3434

3535
## [Package images optimized for multiple microarchitectures](@id pkgimgs-multi-versioning)
36-
Similar to [multi-versioning](@ref sysimg-multi-versioning) for system images, package images support multi-versioning. If you are in a heterogeneous environment, with a unified cache,
37-
you can set the environment variable `JULIA_CPU_TARGET=generic` to multi-version the object caches.
36+
37+
Similar to [multi-versioning](@ref sysimg-multi-versioning) for system images, package images support multi-versioning. This allows creating package caches that can run efficiently on different CPU architectures within the same environment.
38+
39+
See the [`JULIA_CPU_TARGET`](@ref JULIA_CPU_TARGET) environment variable for more information on how to set the CPU target for package images.
3840

3941
## Flags that impact package image creation and selection
4042

doc/src/manual/environment-variables.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ A `generic` or empty CPU name means the basic required feature set of the target
495495
which is at least the architecture the C/C++ runtime is compiled with. Each string
496496
is interpreted by LLVM.
497497

498+
!!! note
499+
Package images can only target the same or more specific CPU features than
500+
their base system image.
501+
498502
A few special features are supported:
499503

500504
1. `sysimage`

0 commit comments

Comments
 (0)