Skip to content

Commit ceafd40

Browse files
committed
fix zig
1 parent 263b118 commit ceafd40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make/detect_platform.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ elseif platform.os == 'linux' then
2424
-- Use Zig for Linux builds to ensure glibc 2.17 compatibility
2525
local use_zig = os.getenv("USE_ZIG")
2626
if use_zig and use_zig ~= "0" and use_zig ~= "false" then
27-
lm.cc = 'zig cc'
28-
lm.cxx = 'zig c++'
27+
-- Set compiler to zig (handles both C and C++)
28+
lm.cc = 'zig c++'
2929
lm.ar = 'zig ar'
3030

3131
if lm.platform == nil then

0 commit comments

Comments
 (0)