Parcourir la source

build.zig: Fix a minor issue with `-Dconfig` (#4418)

pull/4421/head
Sage Hane il y a 5 mois
committed by GitHub
Parent
révision
53f7da2506
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: B5690EEEBB952194
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. +1
    -0
      build.zig

+ 1
- 0
build.zig Voir le fichier

@ -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

Chargement…
Annuler
Enregistrer