Remove units in parts of compiler
, dynext
, setup
and create the cext-lib
package.
`cext-lib` contains much of the contents of `dynext`, which
is no longer very widely used.
Also moved the implementation of the `mzc` executable
to a more appropriate package.
Also, used `lazy-require` consistently for dynamically
loading implementations.
original commit: 9f2755116d
This commit is contained in:
parent
b3553a342f
commit
007d3fe205
|
@ -9,5 +9,4 @@
|
|||
("test" compiler/commands/test "run tests associated with files/directories" 15)
|
||||
("expand" compiler/commands/expand "macro-expand source" #f)
|
||||
("distribute" compiler/commands/exe-dir "prepare executable(s) in a directory for distribution" #f)
|
||||
("ctool" compiler/commands/ctool "compile and link C-based extensions" #f)
|
||||
("demodularize" compiler/demodularizer/batch "produce a whole program from a single module" #f)))
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
(require scheme/cmdline
|
||||
raco/command-name
|
||||
compiler/cm
|
||||
"../compiler.rkt"
|
||||
compiler/compiler
|
||||
dynext/file
|
||||
setup/parallel-build
|
||||
racket/match)
|
||||
|
|
5
pkgs/compiler-lib/compiler/compiler-unit.rkt
Normal file
5
pkgs/compiler-lib/compiler/compiler-unit.rkt
Normal file
|
@ -0,0 +1,5 @@
|
|||
#lang racket/base
|
||||
|
||||
(require compiler/compiler compiler/sig racket/unit)
|
||||
(provide compiler@)
|
||||
(define-unit-from-context compiler@ compiler^)
|
9
pkgs/compiler-lib/compiler/embed-unit.rkt
Normal file
9
pkgs/compiler-lib/compiler/embed-unit.rkt
Normal file
|
@ -0,0 +1,9 @@
|
|||
#lang racket/base
|
||||
(require racket/unit
|
||||
racket/contract
|
||||
"sig.rkt"
|
||||
compiler/embed
|
||||
"embed-sig.rkt")
|
||||
|
||||
(define-unit-from-context compiler:embed@ compiler:embed^)
|
||||
(provide compiler:embed@)
|
7
pkgs/compiler-lib/compiler/option-unit.rkt
Normal file
7
pkgs/compiler-lib/compiler/option-unit.rkt
Normal file
|
@ -0,0 +1,7 @@
|
|||
#lang racket/base
|
||||
|
||||
(require racket/unit compiler/sig compiler/option)
|
||||
|
||||
(provide compiler:option@)
|
||||
|
||||
(define-unit-from-context compiler:option@ compiler:option^)
|
7
pkgs/compiler-lib/launcher/launcher-unit.rkt
Normal file
7
pkgs/compiler-lib/launcher/launcher-unit.rkt
Normal file
|
@ -0,0 +1,7 @@
|
|||
#lang racket/base
|
||||
|
||||
(require racket/unit "launcher-sig.rkt" launcher/launcher)
|
||||
|
||||
(provide launcher@)
|
||||
|
||||
(define-unit-from-context launcher@ launcher^)
|
6
pkgs/compiler-lib/setup/option-unit.rkt
Normal file
6
pkgs/compiler-lib/setup/option-unit.rkt
Normal file
|
@ -0,0 +1,6 @@
|
|||
#lang racket/base
|
||||
(require racket/unit setup/option "option-sig.rkt")
|
||||
|
||||
(provide setup:option@ set-flag-params)
|
||||
|
||||
(define-unit-from-context setup:option@ setup-option^)
|
9
pkgs/compiler-lib/setup/setup-unit.rkt
Normal file
9
pkgs/compiler-lib/setup/setup-unit.rkt
Normal file
|
@ -0,0 +1,9 @@
|
|||
#lang racket/base
|
||||
|
||||
(require racket/unit setup/setup-core)
|
||||
|
||||
(provide setup@)
|
||||
(define-unit setup@
|
||||
(import)
|
||||
(export)
|
||||
(setup-core))
|
Loading…
Reference in New Issue
Block a user