standard filter supports multiple line expressions; better amd64 detection for mac os X

This commit is contained in:
Araq 2010-09-17 01:17:51 +02:00
commit c065694598
3 changed files with 56 additions and 16 deletions

View file

@ -1,6 +1,8 @@
#! stdtmpl(subsChar='?') | standard
#proc GenerateBuildShellScript(c: TConfigData): string =
# result = "#! /bin/sh\n# Generated by niminst\n"
# result = "#! /bin/sh\n# Generated from niminst\n" &
# "# Template is in tools/buildsh.tmpl\n" &
# "# To regenerate run ``niminst csource`` or ``koch csource``\n"
CC="gcc"
LINKER="gcc"
COMP_FLAGS="-w -O3 -fno-strict-aliasing"
@ -33,7 +35,7 @@ case $uos in
*darwin* )
myos="macosx"
LINK_FLAGS="$LINK_FLAGS -ldl -lm"
if [ "`sysctl hw |grep 64bit`" = "hw.cpu64bit_capable: 1" ] ; then
if [ "$HOSTTYPE" = "x86_64" ] ; then
ucpu="amd64"
fi
;;