mirror of
https://github.com/janet-lang/janet
synced 2025-02-26 21:00:01 +00:00
Load jimage files before janet source files.
This should allow precompiled files to be placed right next to the source files in the file system with the expected behavior.
This commit is contained in:
parent
1a7691dade
commit
7eb78c8028
@ -1592,21 +1592,21 @@
|
|||||||
path. The filter can be a string or a predicate function, and
|
path. The filter can be a string or a predicate function, and
|
||||||
is often a file extension, including the period."
|
is often a file extension, including the period."
|
||||||
@[# Relative to (dyn :current-file "./."). Path must start with .
|
@[# Relative to (dyn :current-file "./."). Path must start with .
|
||||||
|
[":cur:/:all:.jimage" :image check-.]
|
||||||
[":cur:/:all:.janet" :source check-.]
|
[":cur:/:all:.janet" :source check-.]
|
||||||
[":cur:/:all:/init.janet" :source check-.]
|
[":cur:/:all:/init.janet" :source check-.]
|
||||||
[":cur:/:all:.jimage" :image check-.]
|
|
||||||
[(string ":cur:/:all:" nati) :native check-.]
|
[(string ":cur:/:all:" nati) :native check-.]
|
||||||
|
|
||||||
# As a path from (os/cwd)
|
# As a path from (os/cwd)
|
||||||
|
[":all:.jimage" :image not-check-.]
|
||||||
[":all:.janet" :source not-check-.]
|
[":all:.janet" :source not-check-.]
|
||||||
[":all:/init.janet" :source not-check-.]
|
[":all:/init.janet" :source not-check-.]
|
||||||
[":all:.jimage" :image not-check-.]
|
|
||||||
[(string ":all:" nati) :native not-check-.]
|
[(string ":all:" nati) :native not-check-.]
|
||||||
|
|
||||||
# System paths
|
# System paths
|
||||||
|
[":sys:/:all:.jimage" :image not-check-.]
|
||||||
[":sys:/:all:.janet" :source not-check-.]
|
[":sys:/:all:.janet" :source not-check-.]
|
||||||
[":sys:/:all:/init.janet" :source not-check-.]
|
[":sys:/:all:/init.janet" :source not-check-.]
|
||||||
[":sys:/:all:.jimage" :image not-check-.]
|
|
||||||
[(string ":sys:/:all:" nati) :native not-check-.]])
|
[(string ":sys:/:all:" nati) :native not-check-.]])
|
||||||
|
|
||||||
(setdyn :syspath (process/opts "JANET_PATH"))
|
(setdyn :syspath (process/opts "JANET_PATH"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user