SPC_DEFAULT_C_FLAGS renamed to SPC_DEFAULT_CFLAGS

This commit is contained in:
crazywhalecc
2026-05-07 14:55:05 +08:00
parent 43663d2966
commit 506cb15654
8 changed files with 16 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ class libjxl extends LibraryPackage
);
if ($toolchain instanceof ZigToolchain) {
$cflags = getenv('SPC_DEFAULT_C_FLAGS') ?: getenv('CFLAGS') ?: '';
$cflags = getenv('SPC_DEFAULT_CFLAGS') ?: getenv('CFLAGS') ?: '';
$has_avx512 = str_contains($cflags, '-mavx512') || str_contains($cflags, '-march=x86-64-v4');
if (!$has_avx512) {
$cmake->addConfigureArgs(