Skip to content

Commit f106bd9

Browse files
Respect JULIA_CPU_TARGET set in Make.inc when building pkgimgs (#51886)
Co-authored-by: Elliot Saba <[email protected]>
1 parent 93dbe36 commit f106bd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkgimage.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ all-debug: $(addprefix cache-debug-, $(STDLIBS))
2929

3030
define stdlib_builder
3131
ifneq ($(filter $(1),$(INDEPENDENT_STDLIBS)),)
32+
# Define target-specific export for `JULIA_CPU_TARGET`
33+
$$(BUILDDIR)/stdlib/$1.release.image: export JULIA_CPU_TARGET=$(JULIA_CPU_TARGET)
34+
$$(BUILDDIR)/stdlib/$1.debug.image: export JULIA_CPU_TARGET=$(JULIA_CPU_TARGET)
35+
3236
$$(BUILDDIR)/stdlib/$1.release.image: $$($1_SRCS) $$(addsuffix .release.image,$$(addprefix $$(BUILDDIR)/stdlib/,$2)) $(build_private_libdir)/sys.$(SHLIB_EXT)
3337
@$$(call PRINT_JULIA, $$(call spawn,$$(JULIA_EXECUTABLE)) --startup-file=no --check-bounds=yes -e 'Base.compilecache(Base.identify_package("$1"))')
3438
@$$(call PRINT_JULIA, $$(call spawn,$$(JULIA_EXECUTABLE)) --startup-file=no --pkgimage=no -e 'Base.compilecache(Base.identify_package("$1"))')

0 commit comments

Comments
 (0)