Skip to content

Commit fd81b50

Browse files
committed
Default stdlib AOT to true
Signed-off-by: James Hamlin <jfhamlin@gmail.com>
1 parent 132750e commit fd81b50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/runtime/rtcompat.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ var (
2727
loadPath = []fs.FS{}
2828
loadPathLock sync.Mutex
2929

30-
useAot = os.Getenv("GLOJURE_USE_AOT") == "1"
30+
useAot = func() bool {
31+
// default to true
32+
gua := strings.ToLower(os.Getenv("GLOJURE_USE_AOT"))
33+
return !(gua == "0" || gua == "false" || gua == "no" || gua == "false")
34+
}()
3135
)
3236

3337
func init() {

0 commit comments

Comments
 (0)