Add a path for gcc set as _compiler value outside of the fallback path

Fixes https://github.com/Frogging-Family/linux-tkg/pull/111
This commit is contained in:
Tk-Glitch 2020-11-04 17:22:27 +01:00
parent eb42478f79
commit 43f016c545

View File

@ -218,8 +218,9 @@ _tkg_initscript() {
elif [ "$_compiler" = "llvm" ]; then
echo "_compiler_name=\"-llvm\"" > ${_path}/compilerset
echo "llvm_opt=\"LLVM=1\"" >> ${_path}/compilerset
else
elif [ "$_compiler" = "gcc" ]; then
echo "_compiler_name=" >> ${_path}/compilerset
else
if [ "$_nofallback" != "true" ] && [ ! -e "${_path}"/compilerset ] && [ "$_compiler" != "llvm" ]; then
warning "Something is wrong with your compiler selection. Do you want to fallback to GCC (default)?"
read -rp "`echo $' > N/y : '`" _fallback;