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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user