Skip to content

Commit 7245363

Browse files
committed
Disable sanitize_c for all Lua versions
Lua is a trusted dependency, so it should be fine to disable the sanitizer. See #201
1 parent eb9def7 commit 7245363

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

build/lua.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn configure(
4747
.target = target,
4848
.optimize = optimize,
4949
.link_libc = true,
50-
.sanitize_c = if (lang == .lua51) .off else null,
50+
.sanitize_c = .off,
5151
});
5252
const library = b.addLibrary(.{
5353
.name = library_name,

build/luajit.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub fn configure(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.
1212
.target = target,
1313
.optimize = optimize,
1414
.unwind_tables = .sync,
15+
.sanitize_c = .off,
1516
});
1617
const library = b.addLibrary(.{
1718
.name = "lua",

build/luau.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub fn configure(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.
88
.target = target,
99
.optimize = optimize,
1010
.link_libcpp = true,
11+
.sanitize_c = .off,
1112
});
1213
const library = b.addLibrary(.{
1314
.name = "luau",

0 commit comments

Comments
 (0)