File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ pub fn build(b: *Build) void {
22
22
const lang = b .option (Language , "lang" , "Lua language version to build" ) orelse .lua54 ;
23
23
const shared = b .option (bool , "shared" , "Build shared library instead of static" ) orelse false ;
24
24
const luau_use_4_vector = b .option (bool , "luau_use_4_vector" , "Build Luau to use 4-vectors instead of the default 3-vector." ) orelse false ;
25
- const upstream = b .dependency (@tagName (lang ), .{});
25
+
26
+ const upstream = b .lazyDependency (@tagName (lang ), .{}) orelse return ;
26
27
27
28
if (lang == .luau and shared ) {
28
29
std .debug .panic ("Luau does not support compiling or loading shared modules" , .{});
Original file line number Diff line number Diff line change 12
12
.lua51 = .{
13
13
.url = "https://github.com/natecraddock/lua/archive/refs/tags/5.1.5-1.tar.gz" ,
14
14
.hash = "12203fe1feebb81635f8df5a5a7242733e441fe3f3043989c8e6b4d6720e96988813" ,
15
+ .lazy = true ,
15
16
},
16
17
17
18
.lua52 = .{
18
19
.url = "https://www.lua.org/ftp/lua-5.2.4.tar.gz" ,
19
20
.hash = "1220d5b2b39738f0644d9ed5b7431973f1a16b937ef86d4cf85887ef3e9fda7a3379" ,
21
+ .lazy = true ,
20
22
},
21
23
22
24
.lua53 = .{
23
25
.url = "https://www.lua.org/ftp/lua-5.3.6.tar.gz" ,
24
26
.hash = "1220937a223531ef6b3fea8f653dc135310b0e84805e7efa148870191f5ab915c828" ,
27
+ .lazy = true ,
25
28
},
26
29
27
30
.lua54 = .{
28
31
.url = "https://www.lua.org/ftp/lua-5.4.6.tar.gz" ,
29
32
.hash = "1220f93ada1fa077ab096bf88a5b159ad421dbf6a478edec78ddb186d0c21d3476d9" ,
33
+ .lazy = true ,
30
34
},
31
35
32
36
.luajit = .{
33
37
.url = "https://github.com/LuaJIT/LuaJIT/archive/c525bcb9024510cad9e170e12b6209aedb330f83.tar.gz" ,
34
38
.hash = "1220ae2d84cfcc2a7aa670661491f21bbed102d335de18ce7d36866640fd9dfcc33a" ,
39
+ .lazy = true ,
35
40
},
36
41
37
42
.luau = .{
38
43
.url = "https://github.com/luau-lang/luau/archive/refs/tags/0.607.tar.gz" ,
39
44
.hash = "122003818ff2aa912db37d4bbda314ff9ff70d03d9243af4b639490be98e2bfa7cb6" ,
45
+ .lazy = true ,
40
46
},
41
47
},
42
48
}
You can’t perform that action at this time.
0 commit comments