You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.zig
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ pub fn build(b: *Build) void {
41
41
constsystem_lua=b.option(bool, "system_lua", "Use system lua") orelsefalse;
42
42
constluau_use_4_vector=b.option(bool, "luau_use_4_vector", "Build Luau to use 4-vectors instead of the default 3-vector.") orelsefalse;
43
43
constlua_user_h=b.option(Build.LazyPath, "lua_user_h", "Lazy path to user supplied c header file") orelsenull;
44
-
constadditional_system_headers=b.option(Build.LazyPath, "additional_system_headers", "Lazy path to additional system headers to include when building Lua") orelsenull;
44
+
constadditional_system_headers=b.option([]Build.LazyPath, "additional_system_headers", "Slice of Lazy paths to additional system headers to include when building Lua") orelsenull;
45
45
constapi_check=b.option(ApiCheck, "apicheck", "Enable parameter checks in the Lua API") orelse.debug;
46
46
47
47
if (lang==.luauandshared) {
@@ -87,9 +87,9 @@ pub fn build(b: *Build) void {
87
87
88
88
// If we've been given additional system headers, add them now.
89
89
// Useful for things like linking Emscripten headers by including a new sysroot
90
-
if (additional_system_headers) |headers| {
91
-
t.addSystemIncludePath(headers);
92
-
}
90
+
if (additional_system_headers) |include_paths|for (include_paths) |include_path| {
0 commit comments