why isn't this triggered?

This commit is contained in:
DubbleClick 2025-06-27 23:35:04 +07:00
parent efb1ff5a93
commit aa516522aa

View File

@ -19,16 +19,16 @@ trait libaom
$cc = getenv('CC'); $cc = getenv('CC');
$cxx = getenv('CXX'); $cxx = getenv('CXX');
if (str_contains($cc, 'zig') && getenv('SPC_LIBC') === 'musl') { if (str_contains($cc, 'zig') && getenv('SPC_LIBC') === 'musl') {
putenv('CC=' . $cc . ' -D_POSIX_SOURCE'); f_putenv('CC=' . $cc . ' -D_POSIX_SOURCE');
putenv('CXX=' . $cxx . ' -D_POSIX_SOURCE'); f_putenv('CXX=' . $cxx . ' -D_POSIX_SOURCE');
} }
UnixCMakeExecutor::create($this) UnixCMakeExecutor::create($this)
->setBuildDir("{$this->source_dir}/builddir") ->setBuildDir("{$this->source_dir}/builddir")
->addConfigureArgs('-DAOM_TARGET_CPU=generic') ->addConfigureArgs('-DAOM_TARGET_CPU=generic')
->build(); ->build();
if (str_contains($cc, 'zig') && getenv('SPC_LIBC') === 'musl') { if (str_contains($cc, 'zig') && getenv('SPC_LIBC') === 'musl') {
putenv('CC=' . $cc); f_putenv('CC=' . $cc);
putenv('CXX=' . $cxx); f_putenv('CXX=' . $cxx);
} }
$this->patchPkgconfPrefix(['aom.pc']); $this->patchPkgconfPrefix(['aom.pc']);
} }