bootstrap.{io, ui}: load dependencies to make deploy tool less error-prone

db4
Slava Pestov 2011-02-27 13:55:43 -08:00
parent 25c60b6869
commit e3c08f32ce
2 changed files with 15 additions and 10 deletions

View File

@ -2,7 +2,10 @@ USING: system vocabs vocabs.loader kernel combinators
namespaces sequences io.backend accessors ;
IN: bootstrap.io
"bootstrap.compiler" vocab [
"bootstrap.compiler" require
"bootstrap.threads" require
[
"io.backend." {
{ [ "io-backend" get ] [ "io-backend" get ] }
{ [ os unix? ] [ "unix." os name>> append ] }

View File

@ -2,12 +2,14 @@ USING: alien namespaces system combinators kernel sequences
vocabs vocabs.loader ;
IN: bootstrap.ui
"bootstrap.compiler" vocab [
"ui-backend" get [
{
{ [ os macosx? ] [ "cocoa" ] }
{ [ os windows? ] [ "windows" ] }
{ [ os unix? ] [ "x11" ] }
} cond
] unless* "ui.backend." prepend require
] when
"bootstrap.math" require
"bootstrap.compiler" require
"bootstrap.threads" require
"ui-backend" get [
{
{ [ os macosx? ] [ "cocoa" ] }
{ [ os windows? ] [ "windows" ] }
{ [ os unix? ] [ "x11" ] }
} cond
] unless* "ui.backend." prepend require