helpers/envkernel.fish: add gcc4 support (!1842)
This commit is contained in:
parent
1fbf7356c6
commit
b3a9080398
|
@ -2,13 +2,16 @@
|
||||||
# Copyright 2019 Oliver Smith
|
# Copyright 2019 Oliver Smith
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
if [ "$argv" != "" ]
|
for arg in $argv
|
||||||
and [ "$argv" != "--gcc6" ]
|
if not string match -q -- "--gcc6" $arg;
|
||||||
echo "usage: source envkernel.fish"
|
and not string match -q -- "--gcc4" $arg
|
||||||
echo "optional arguments:"
|
echo "usage: source envkernel.fish"
|
||||||
echo " --gcc6 Use GCC6 cross compiler"
|
echo "optional arguments:"
|
||||||
echo " --help Show this help message"
|
echo " --gcc4 Use GCC4 cross compiler"
|
||||||
exit 1
|
echo " --gcc6 Use GCC6 cross compiler"
|
||||||
|
echo " --help Show this help message"
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Fish compatibility code from envkernel.sh
|
# Fish compatibility code from envkernel.sh
|
||||||
|
|
Loading…
Reference in New Issue