summaryrefslogtreecommitdiff
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:58 +0000
commitfba2c4b0d62c7959dbdc3167e35e3552e1b88efd (patch)
tree8545dcefcba81d5c334f682c4aab38e6801b54d1
parent62bf0e51a59da874f24a88b3d5286d1214ef240c (diff)
downloadsbpython3-fba2c4b0d62c7959dbdc3167e35e3552e1b88efd.tar.bz2
sbpython3-fba2c4b0d62c7959dbdc3167e35e3552e1b88efd.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"