cs: fix cross-compile depdency tracking
This commit is contained in:
parent
1f18530719
commit
b1aee01b8c
|
@ -397,10 +397,10 @@
|
|||
|
||||
(when (getenv "MAKE_BOOT_FOR_CROSS")
|
||||
;; Working bootfiles are not needed for a cross build (only the
|
||||
;; ".h" files are needed), so just make dummy files in that case
|
||||
;; to let `configure` work
|
||||
;; ".h" files are needed), so just touch dummy files in that case
|
||||
;; to let `configure` work and to communicate xpatch rebuild
|
||||
(define (touch p)
|
||||
(unless (file-exists? p) (call-with-output-file* p void)))
|
||||
(call-with-output-file* p void #:exists 'truncate))
|
||||
(touch (build-path out-subdir "petite.boot"))
|
||||
(touch (build-path out-subdir "scheme.boot"))
|
||||
(exit))
|
||||
|
|
|
@ -162,8 +162,11 @@ scheme-cross:
|
|||
$(MAKE) $(SCHEME_WORKAREA)/$(TARGET_MACH)/s/xpatch
|
||||
|
||||
# Rebuild patch file and cross "petite.boot" and "scheme.boot" when older
|
||||
# than the build-host "scheme.boot"
|
||||
$(SCHEME_WORKAREA)/$(TARGET_MACH)/s/xpatch: $(SCHEME_HOST_WORKAREA)/$(MACH)/boot/$(MACH)/scheme.boot
|
||||
# than the build-host "scheme.boot" or when "make-boot.rkt" touchs dummy boot files
|
||||
XPATCH_DEPS = $(SCHEME_HOST_WORKAREA)/$(MACH)/boot/$(MACH)/scheme.boot \
|
||||
$(SCHEME_WORKAREA)/boot/$(TARGET_MACH)/scheme.boot
|
||||
|
||||
$(SCHEME_WORKAREA)/$(TARGET_MACH)/s/xpatch: $(XPATCH_DEPS)
|
||||
$(MAKE) bounce TARGET=build-xpatch-using-host
|
||||
|
||||
build-xpatch-using-host:
|
||||
|
|
Loading…
Reference in New Issue
Block a user