diff options
author | Araq <rumpf_a@web.de> | 2010-09-17 01:17:51 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2010-09-17 01:17:51 +0200 |
commit | c06569459819a2aba1a287c7f38904c40c5152d4 (patch) | |
tree | 4761c849a674fab08a8e9e0365864a5a8bd7d8c3 /tools | |
parent | 9cf4cf02994d55a909c4747b6dcca24bf93543bb (diff) | |
download | Nim-c06569459819a2aba1a287c7f38904c40c5152d4.tar.gz |
standard filter supports multiple line expressions; better amd64 detection for mac os X
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/buildsh.tmpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/buildsh.tmpl b/tools/buildsh.tmpl index da034a76b..610420583 100755 --- a/tools/buildsh.tmpl +++ b/tools/buildsh.tmpl @@ -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 ;; |