The build.sh file generated by niminst now supports a --extraBuildArgs param.
This commit is contained in:
parent
238202ccbc
commit
bac790ae3b
1 changed files with 22 additions and 1 deletions
|
|
@ -3,9 +3,30 @@
|
|||
# result = "#! /bin/sh\n# Generated from niminst\n" &
|
||||
# "# Template is in tools/buildsh.tmpl\n" &
|
||||
# "# To regenerate run ``niminst csource`` or ``koch csource``\n"
|
||||
while :
|
||||
do
|
||||
case "$1" in
|
||||
--extraBuildArgs)
|
||||
extraBuildArgs=" $2"
|
||||
shift 2
|
||||
;;
|
||||
--) # End of all options
|
||||
shift
|
||||
break;
|
||||
;;
|
||||
-*)
|
||||
echo "Error: Unknown option: $1" >&2
|
||||
exit 1
|
||||
;;
|
||||
*) # No more options
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
CC="gcc"
|
||||
LINKER="gcc"
|
||||
COMP_FLAGS="?{c.ccompiler.flags}"
|
||||
COMP_FLAGS="?{c.ccompiler.flags}$extraBuildArgs"
|
||||
LINK_FLAGS="?{c.linker.flags}"
|
||||
# add(result, "# platform detection\n")
|
||||
ucpu=`uname -m`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue