helpers/envkernel.fish: add gcc4 support (!1842)

This commit is contained in:
Luca Weiss 2019-12-08 19:10:22 +01:00 committed by Oliver Smith
parent 1fbf7356c6
commit b3a9080398
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 10 additions and 7 deletions

View File

@ -2,13 +2,16 @@
# Copyright 2019 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
if [ "$argv" != "" ]
and [ "$argv" != "--gcc6" ]
echo "usage: source envkernel.fish"
echo "optional arguments:"
echo " --gcc6 Use GCC6 cross compiler"
echo " --help Show this help message"
exit 1
for arg in $argv
if not string match -q -- "--gcc6" $arg;
and not string match -q -- "--gcc4" $arg
echo "usage: source envkernel.fish"
echo "optional arguments:"
echo " --gcc4 Use GCC4 cross compiler"
echo " --gcc6 Use GCC6 cross compiler"
echo " --help Show this help message"
exit 1
end
end
# Fish compatibility code from envkernel.sh