1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 23:53:02 +00:00

Set module/*headerpath* during bootstrap

Cook also uses module/*headerpath* for finding headers
rather than using module/*syspath*.
This commit is contained in:
Calvin Rose
2019-05-15 10:49:16 -04:00
parent 8359044408
commit f35b5765d6
4 changed files with 12 additions and 8 deletions

View File

@@ -1597,6 +1597,11 @@
on Windows is C:/Janet/Library."
(or (process/opts "JANET_PATH") ""))
(var module/*headerpath*
"The path where the janet headers are installed. Useful for building
native modules or compiling code at runtime."
(process/opts "JANET_HEADERPATH"))
# Version of fexists that works even with a reduced OS
(if-let [has-stat (_env 'os/stat)]
(let [stat (has-stat :value)]