Commit 9ebd45c2 authored by Mans Rullgard's avatar Mans Rullgard
Browse files

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.
Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent c29d49c1
......@@ -2524,10 +2524,7 @@ is_in $arch $ARCH_LIST || warn "unknown architecture $arch"
enable $arch
# Add processor-specific flags
if test "$cpu" = generic; then
: do nothing
elif enabled aarch64; then
if enabled aarch64; then
case $cpu in
armv*)
......@@ -2680,8 +2677,10 @@ elif enabled x86; then
fi
add_cflags $cpuflags
add_asflags $cpuflags
if [ "$cpu" != generic ]; then
add_cflags $cpuflags
add_asflags $cpuflags
fi
# compiler sanity check
check_exec <<EOF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment