Просмотр исходного кода

Fix EXTERNAL_CONFIG_FLAGS being defined even when no custom config is used when building with zig (#5410)

pull/5411/head
ALONZO Robin 1 месяц назад
committed by GitHub
Родитель
Сommit
8d246fdaff
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      build.zig

+ 2
- 2
build.zig Просмотреть файл

@ -155,9 +155,9 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
);
}
// Sets a flag indicating the use of a custom `config.h`
try raylib_flags_arr.append(b.allocator, "-DEXTERNAL_CONFIG_FLAGS");
if (options.config.len > 0) {
// Sets a flag indicating the use of a custom `config.h`
try raylib_flags_arr.append(b.allocator, "-DEXTERNAL_CONFIG_FLAGS");
// Splits a space-separated list of config flags into multiple flags
//
// Note: This means certain flags like `-x c++` won't be processed properly.

Загрузка…
Отмена
Сохранить