Skip to content

Commit 7ebc7c0

Browse files
committed
!= generic needs nasm/yasm
1 parent 721ac4a commit 7ebc7c0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/SPC/builder/unix/library/libaom.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace SPC\builder\unix\library;
66

7+
use SPC\builder\linux\SystemUtil;
78
use SPC\toolchain\ToolchainManager;
89
use SPC\toolchain\ZigToolchain;
910
use SPC\util\executor\UnixCMakeExecutor;
@@ -22,6 +23,9 @@ protected function build(): void
2223
if (str_starts_with($targetCpu, 'aarch')) {
2324
$targetCpu = str_replace($targetCpu, 'aarch', 'arm');
2425
}
26+
if (!SystemUtil::findCommand('nasm') && !SystemUtil::findCommand('yasm')) {
27+
$targetCpu = 'generic';
28+
}
2529
UnixCMakeExecutor::create($this)
2630
->setBuildDir("{$this->source_dir}/builddir")
2731
->addConfigureArgs(

0 commit comments

Comments
 (0)