summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-05 12:59:41 +0000
committermidipix <writeonce@midipix.org>2021-06-05 15:11:51 +0000
commit6a2fd127b9a8ad42b0056a139871fee5d9f8e0a3 (patch)
tree03b70b26f5e44c0ddfe19ece79fad5eb5e7bd577
parent40216d5d80c05572d04bf0e81a1ebc7f9eb9f91a (diff)
downloadntux-6a2fd127b9a8ad42b0056a139871fee5d9f8e0a3.tar.bz2
ntux-6a2fd127b9a8ad42b0056a139871fee5d9f8e0a3.tar.xz
build system: ccenv: ccenv_set_cc(): record compiler's support of stdin input.
-rw-r--r--sofort/ccenv/ccenv.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index 17656e3..3c48fa6 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -489,6 +489,12 @@ ccenv_set_cc()
ccenv_dumpmachine_switch=
fi
+ if cfgtest_code_snippet_asm 'typedef int dummy;' ; then
+ eval ccenv_${ccenv_cfgtype}_stdin_input='yes'
+ else
+ eval ccenv_${ccenv_cfgtype}_stdin_input='no'
+ fi
+
unset cfgtest_silent
ccenv_cc_cmd="$ccenv_cc"