Skip to content

Commit

Permalink
parse -resource-path= during bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
jckarter committed Mar 25, 2012
1 parent 633a83f commit cb3e5ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/bootstrap/stage1.factor
Expand Up @@ -3,7 +3,8 @@
USING: arrays assocs continuations debugger generic hashtables
init io io.files kernel kernel.private make math memory
namespaces parser parser.notes prettyprint sequences splitting
system vectors vocabs vocabs.loader words destructors ;
system vectors vocabs vocabs.loader words destructors
io.encodings.utf8 alien.strings ;
QUALIFIED: bootstrap.image.private
IN: bootstrap.stage1

Expand Down Expand Up @@ -37,6 +38,10 @@ load-help? off
[
f parser-quiet? set-global

OBJ-ARGS special-object
[ utf8 alien>string "-resource-path=" ?head [ drop f ] unless ] map-find drop
[ "resource-path" set-global ] when*

"resource:basis/bootstrap/stage2.factor"
dup exists? [
run-file
Expand Down

0 comments on commit cb3e5ac

Please sign in to comment.