This will allow arch-specific ways of determining the target variant when none is specified on the command line.
Unified · Split
| @@ -2524,10 +2524,7 @@ is_in $arch $ARCH_LIST || warn "unknown architecture $arch" · 2523 unmodified lines | ||
| 2524 | 2524 | enable $arch |
| 2525 | 2525 | |
| 2526 | 2526 | # Add processor-specific flags |
| 2527 | −if test "$cpu" = generic; then | |
| 2528 | − : do nothing | |
| 2529 | − | |
| 2530 | −elif enabled aarch64; then | |
| 2527 | +if enabled aarch64; then | |
| 2531 | 2528 | |
| 2532 | 2529 | case $cpu in |
| 2533 | 2530 | armv*) |
| @@ -2680,8 +2677,10 @@ elif enabled x86; then · 146 unmodified lines | ||
| 2680 | 2677 | |
| 2681 | 2678 | fi |
| 2682 | 2679 | |
| 2683 | −add_cflags $cpuflags | |
| 2684 | −add_asflags $cpuflags | |
| 2680 | +if [ "$cpu" != generic ]; then | |
| 2681 | + add_cflags $cpuflags | |
| 2682 | + add_asflags $cpuflags | |
| 2683 | +fi | |
| 2685 | 2684 | |
| 2686 | 2685 | # compiler sanity check |
| 2687 | 2686 | check_exec <<EOF |