mirror of
https://github.com/matrix-construct/construct
synced 2024-05-29 08:13:46 +02:00
configure: Use $host_cpu rather than $target_cpu; cleanup quotings.
This commit is contained in:
parent
a67227f28f
commit
02dd645748
21
configure.ac
21
configure.ac
|
@ -800,7 +800,7 @@ machine_tune="native"
|
||||||
AM_COND_IF([GENERIC],
|
AM_COND_IF([GENERIC],
|
||||||
[
|
[
|
||||||
machine_tune="generic"
|
machine_tune="generic"
|
||||||
AS_CASE([$target_cpu],
|
AS_CASE([$host_cpu],
|
||||||
[x86_64],
|
[x86_64],
|
||||||
[
|
[
|
||||||
machine_arch="x86-64"
|
machine_arch="x86-64"
|
||||||
|
@ -816,7 +816,7 @@ for feature in $machine; do
|
||||||
machine_tune=$(echo $feature | cut -d"=" -f2)
|
machine_tune=$(echo $feature | cut -d"=" -f2)
|
||||||
else
|
else
|
||||||
machine_feat="$feature $machine_feat"
|
machine_feat="$feature $machine_feat"
|
||||||
RB_VAR_PREPEND([MACHINE_FLAGS], ["-m${feature}"])
|
RB_VAR_PREPEND([MACHINE_FLAGS], [-m${feature}])
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -834,18 +834,23 @@ AM_COND_IF_NOT([GENERIC],
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Specific extension underrides
|
dnl Specific extension underrides
|
||||||
AS_CASE([$target_cpu],
|
AS_CASE([$host_cpu],
|
||||||
[x86_64],
|
[x86_64],
|
||||||
[
|
[
|
||||||
dnl AMD K10's SSE4a doesn't work with valgrind
|
dnl AMD K10's SSE4a doesn't work with valgrind
|
||||||
RB_VAR_PREPEND([MACHINE_FLAGS], ["-mno-sse4a"])
|
RB_VAR_PREPEND([MACHINE_FLAGS], [-mno-sse4a])
|
||||||
])
|
])
|
||||||
|
|
||||||
RB_VAR_PREPEND([MACHINE_FLAGS], ["-mtune=$machine_tune"])
|
if [[ ! -z "$machine_tune" ]]; then
|
||||||
RB_VAR_PREPEND([MACHINE_FLAGS], ["-march=$machine_arch"])
|
RB_VAR_PREPEND([MACHINE_FLAGS], [-mtune=$machine_tune])
|
||||||
|
fi
|
||||||
|
|
||||||
machine_tuning="${target_cpu} arch=$machine_arch tune=$machine_tune :$machine_feat"
|
if [[ ! -z "$machine_arch" ]]; then
|
||||||
RB_VAR_PREPEND([CXXFLAGS], ["$MACHINE_FLAGS"])
|
RB_VAR_PREPEND([MACHINE_FLAGS], [-march=$machine_arch])
|
||||||
|
fi
|
||||||
|
|
||||||
|
machine_tuning="${host_cpu} arch=$machine_arch tune=$machine_tune :$machine_feat"
|
||||||
|
RB_VAR_PREPEND([CXXFLAGS], [$MACHINE_FLAGS])
|
||||||
|
|
||||||
dnl Get the target features for this build from gcc into a readable string
|
dnl Get the target features for this build from gcc into a readable string
|
||||||
AM_COND_IF([GCC],
|
AM_COND_IF([GCC],
|
||||||
|
|
Loading…
Reference in a new issue