Skip to content

Commit c6ee64d

Browse files
committed
build: propagate RACKET=... to nested targets
Closes racket#5274
1 parent c48608d commit c6ee64d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

main.zuo

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@
7777
(hash 'jobs n-jobs)
7878
(hash)))
7979

80+
(define (derived-options)
81+
(define r (get-provided-racket))
82+
(if (equal? r "")
83+
(hash)
84+
(hash 'racket (or (find-executable-path r) r))))
85+
8086
(define (get-job-options)
8187
(define jobs (get-jobs))
8288
(if jobs
@@ -797,7 +803,8 @@
797803
(let ([src (at-source src)])
798804
(build (find-target target-name
799805
((dynamic-require src 'targets-at)
800-
(make-at-dir (path-only src))))
806+
(make-at-dir (path-only src))
807+
(derived-options)))
801808
token)))
802809
(build-one "racket/src/rktio/build.zuo" "rktio-rktl")
803810
(build-one "racket/src/expander/main.zuo" "expander")

0 commit comments

Comments
 (0)