share submodules of racket/base and scheme/base
for user code
This commit is contained in:
parent
36e40ed340
commit
5290b4c4b3
|
@ -185,7 +185,12 @@
|
||||||
(define to-be-copied-module-specs
|
(define to-be-copied-module-specs
|
||||||
(list ''#%foreign
|
(list ''#%foreign
|
||||||
'(lib "mzlib/pconvert-prop.rkt")
|
'(lib "mzlib/pconvert-prop.rkt")
|
||||||
'(lib "planet/terse-info.rkt")))
|
'(lib "planet/terse-info.rkt")
|
||||||
|
;; preserve the invariant that:
|
||||||
|
;; if a module is shared, so
|
||||||
|
;; are all of its submodules
|
||||||
|
'(submod racket/base reader)
|
||||||
|
'(submod scheme/base reader)))
|
||||||
|
|
||||||
;; ensure that they are all here.
|
;; ensure that they are all here.
|
||||||
(for-each (λ (x) (dynamic-require x #f)) to-be-copied-module-specs)
|
(for-each (λ (x) (dynamic-require x #f)) to-be-copied-module-specs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user