History

configure: do not bypass cpuflags section if --cpu not given

This will allow arch-specific ways of determining the target variant when none is specified on the command line.

Mans Rullgard committed 13 years ago

Commit 9ebd45c1 parent c29d49c1 file · +5 −6Browse files

Unified · Split

configure+5−6
@@ -2524,10 +2524,7 @@ is_in $arch $ARCH_LIST || warn "unknown architecture $arch" · 2523 unmodified lines
25242524 enable $arch
25252525
25262526 # Add processor-specific flags
2527−if test "$cpu" = generic; then
2528− : do nothing
2529−
2530−elif enabled aarch64; then
2527+if enabled aarch64; then
25312528
25322529 case $cpu in
25332530 armv*)
@@ -2680,8 +2677,10 @@ elif enabled x86; then · 146 unmodified lines
26802677
26812678 fi
26822679
2683−add_cflags $cpuflags
2684−add_asflags $cpuflags
2680+if [ "$cpu" != generic ]; then
2681+ add_cflags $cpuflags
2682+ add_asflags $cpuflags
2683+fi
26852684
26862685 # compiler sanity check
26872686 check_exec <<EOF

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t