Skip to content

Commit

Permalink
build.zig: Fix a minor issue with -Dconfig (raysan5#4418)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagehane authored and psxdev committed Nov 18, 2024
1 parent d4aaf38 commit 86ca366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
// `n` corresponds to the number of user-specified flags
outer: for (config_h_flags) |flag| {
// If a user already specified the flag, skip it
config_iter.reset();
while (config_iter.next()) |config_flag| {
// For a user-specified flag to match, it must share the same prefix and have the
// same length or be followed by an equals sign
Expand Down

0 comments on commit 86ca366

Please sign in to comment.