Skip to content

Commit 21f9946

Browse files
committed
Disable unused languages.
1 parent c18e014 commit 21f9946

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

common.bashinc

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,22 +220,39 @@ function build_one() {
220220
ct-ng olddefconfig
221221

222222
if [[ ! -z "${build_host_compile:-}" ]]; then
223-
echo "# CT_GCC_V_14 is not set" >> .config
224-
echo "# CT_GCC_V_13 is not set" >> .config
225-
echo "# CT_GCC_V_12 is not set" >> .config
226-
echo "# CT_GCC_V_11 is not set" >> .config
227-
echo "CT_GCC_V_10=y" >> .config
228-
echo "CT_GCC_VERSION=\"10.5.0\"" >> .config
223+
echo "# CT_GCC_V_14 is not set" >>.config
224+
echo "# CT_GCC_V_13 is not set" >>.config
225+
echo "# CT_GCC_V_12 is not set" >>.config
226+
echo "# CT_GCC_V_11 is not set" >>.config
227+
echo "CT_GCC_V_10=y" >>.config
228+
echo "CT_GCC_VERSION=\"10.5.0\"" >>.config
229229
ct-ng olddefconfig
230230
fi
231231

232+
# Disable unnecessary languages
233+
echo "CT_CC_LANG_FORTRAN=n" >>.config
234+
echo "# CT_CC_LANG_FORTRAN is not set" >>.config
235+
echo "CT_CC_LANG_JIT=n" >>.config
236+
echo "# CT_CC_LANG_JIT is not set" >>.config
237+
echo "CT_CC_LANG_ADA=n" >>.config
238+
echo "# CT_CC_LANG_ADA is not set" >>.config
239+
echo "CT_CC_LANG_D=n" >>.config
240+
echo "# CT_CC_LANG_D is not set" >>.config
241+
echo "CT_CC_LANG_OBJC=n" >>.config
242+
echo "# CT_CC_LANG_OBJC is not set" >>.config
243+
echo "CT_CC_LANG_OBJCXX=n" >>.config
244+
echo "# CT_CC_LANG_OBJCXX is not set" >>.config
245+
echo "CT_CC_LANG_GOLANG=n" >>.config
246+
echo "# CT_CC_LANG_GOLANG is not set" >>.config
247+
ct-ng olddefconfig
248+
232249
if [[ ! -z "${binutils_plugins:-}" ]] && [[ ! -z "${static_toolchain:-}" ]]; then
233250
echo "Cannot use \`--binutils-plugins\` and \`--static-toolchain\` together." >&2
234251
exit 1
235252
fi
236253

237254
if [[ ! -z "${binutils_plugins:-}" ]]; then
238-
echo "CT_BINUTILS_PLUGINS=y" >> .config
255+
echo "CT_BINUTILS_PLUGINS=y" >>.config
239256
ct-ng olddefconfig
240257
fi
241258

0 commit comments

Comments
 (0)