summaryrefslogtreecommitdiffhomepage
path: root/sofort/cfgtest
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-12 13:15:38 +0000
committermidipix <writeonce@midipix.org>2021-06-12 14:55:59 +0000
commitfb4f0e5e0edeb654aa1e71c55e505991dd0c7cbd (patch)
tree1205debc1c2bf52191d6c3140f5ddc7000e5933c /sofort/cfgtest
parentba5e421ef60ac6fd86dd57960f47f4c04eed547b (diff)
downloadntux-fb4f0e5e0edeb654aa1e71c55e505991dd0c7cbd.tar.bz2
ntux-fb4f0e5e0edeb654aa1e71c55e505991dd0c7cbd.tar.xz
build system: cfgtest: added cfgtest_compiler_switch_arg().
Diffstat (limited to 'sofort/cfgtest')
-rw-r--r--sofort/cfgtest/cfgtest.sh22
1 files changed, 21 insertions, 1 deletions
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh
index 53d7cb8..debdb8c 100644
--- a/sofort/cfgtest/cfgtest.sh
+++ b/sofort/cfgtest/cfgtest.sh
@@ -777,8 +777,12 @@ cfgtest_compiler_switch()
cfgtest_spc=' '
done
- if [ "${1}" = "$cfgtest_switches" ]; then
+ if [ -n "${cfgtest_switch_arg:-}" ]; then
+ cfgtest_prolog 'compiler switch' "${cfgtest_switches%=*}"
+
+ elif [ "${1}" = "$cfgtest_switches" ]; then
cfgtest_prolog 'compiler switch' "$cfgtest_switches"
+
else
cfgtest_prolog 'compiler switch combination' "$cfgtest_switches"
fi
@@ -824,6 +828,22 @@ cfgtest_compiler_switch()
}
+cfgtest_compiler_switch_arg()
+{
+ cfgtest_switch_arg='yes'
+
+ if cfgtest_compiler_switch "${@}"; then
+ cfgtest_ret=0
+ else
+ cfgtest_ret=1
+ fi
+
+ unset cfgtest_switch_arg
+
+ return $cfgtest_ret
+}
+
+
cfgtest_unit_header_presence()
{
cfgtest_internal_unit_test='unit_test'