mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
build.zig: Fix a minor issue with -Dconfig
(#4418)
This commit is contained in:
@@ -116,6 +116,7 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
|
|||||||
// `n` corresponds to the number of user-specified flags
|
// `n` corresponds to the number of user-specified flags
|
||||||
outer: for (config_h_flags) |flag| {
|
outer: for (config_h_flags) |flag| {
|
||||||
// If a user already specified the flag, skip it
|
// If a user already specified the flag, skip it
|
||||||
|
config_iter.reset();
|
||||||
while (config_iter.next()) |config_flag| {
|
while (config_iter.next()) |config_flag| {
|
||||||
// For a user-specified flag to match, it must share the same prefix and have the
|
// 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
|
// same length or be followed by an equals sign
|
||||||
|
Reference in New Issue
Block a user