Commit 96b472e
committed
fix(x264): enable assembly on macOS arm64 by using clang as assembler
x264's aarch64 .S files contain macros (T(), const, endconst) requiring
C preprocessor expansion. The bare 'as' command skips preprocessing,
causing build failures. Setting AS=clang ensures preprocessing runs
before assembly, matching Apple's Xcode toolchain behaviour.
Removes the --disable-asm workaround that caused 10-20% performance
loss.
Signed-off-by: Martin Wimpress <martin@wimpress.org>1 parent a9f99ec commit 96b472e
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
| 540 | + | |
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | 551 | | |
558 | 552 | | |
559 | | - | |
560 | | - | |
561 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
562 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| |||
0 commit comments