Skip to content

Commit 53f7da2

Browse files
authored
build.zig: Fix a minor issue with -Dconfig (#4418)
1 parent 55249fa commit 53f7da2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
116116
// `n` corresponds to the number of user-specified flags
117117
outer: for (config_h_flags) |flag| {
118118
// If a user already specified the flag, skip it
119+
config_iter.reset();
119120
while (config_iter.next()) |config_flag| {
120121
// For a user-specified flag to match, it must share the same prefix and have the
121122
// same length or be followed by an equals sign

0 commit comments

Comments
 (0)