mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 09:59:29 +00:00
Fix Lua < 5.4 compiler with new preprocessor env
This commit is contained in:
parent
ff6d7f8feb
commit
01e808e2e6
4 changed files with 4 additions and 4 deletions
|
|
@ -33,6 +33,6 @@ end
|
||||||
|
|
||||||
#local patch = output
|
#local patch = output
|
||||||
#output = ""
|
#output = ""
|
||||||
#import("compiler.luajit", { patch = patch, loadPackage = false })
|
#import("compiler.luajit", { preprocessorEnv = { patch = patch }, loadPackage = false })
|
||||||
|
|
||||||
return luajit
|
return luajit
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,6 @@ end
|
||||||
|
|
||||||
#local patch = output
|
#local patch = output
|
||||||
#output = ""
|
#output = ""
|
||||||
#import("compiler.lua53", { patch = patch, loadPackage = false })
|
#import("compiler.lua53", { preprocessorEnv = { patch = patch }, loadPackage = false })
|
||||||
|
|
||||||
return lua53
|
return lua53
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@ end
|
||||||
|
|
||||||
#local patch = output
|
#local patch = output
|
||||||
#output = ""
|
#output = ""
|
||||||
#import("compiler.lua54", { patch = patch, loadPackage = false })
|
#import("compiler.lua54", { preprocessorEnv = { patch = patch }, loadPackage = false })
|
||||||
|
|
||||||
return lua54
|
return lua54
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,6 @@ end
|
||||||
|
|
||||||
#local patch = output
|
#local patch = output
|
||||||
#output = ""
|
#output = ""
|
||||||
#import("compiler.lua52", { patch = patch, loadPackage = false })
|
#import("compiler.lua52", { preprocessorEnv = { patch = patch }, loadPackage = false })
|
||||||
|
|
||||||
return lua52
|
return lua52
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue