diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-28 10:11:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-28 10:11:09 +0200 |
commit | ed58957b9ff61004d4e00719504480147e629a8f (patch) | |
tree | efe2d0154d46841cc20a1a74de9afbee7a7eaa77 /bootstrap | |
parent | 7123f122b96f81a435241e16b372df5dfa52dba3 (diff) |
Update INSTALL, bootstrap with revised steps
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -1,12 +1,13 @@ #!/bin/sh cxx=g++ +cxxflags= libbutl= while test $# -ne 0; do case $1 in --help) - echo "Usage: $0 [--help] [--cxx <c++-compiler>]" 1>&2 + echo "Usage: $0 [--help] [--cxx <compiler>] [--cxxflags <flags>]" 1>&2 echo "See the INSTALL file for details." 1>&2 exit 0 ;; @@ -19,6 +20,15 @@ while test $# -ne 0; do cxx=$1 shift ;; + --cxxflags) + shift + if test $# -eq 0; then + echo "error: c++ compiler flags expected after --cxxflags" 1>&2 + exit 1 + fi + cxx=$1 + shift + ;; --libbutl) shift if test $# -eq 0; then @@ -79,5 +89,5 @@ src="$src build/test/*.cxx" src="$src build/install/*.cxx" src="$src $libbutl/butl/*.cxx" -echo $cxx -std=c++1y -I$libbutl -I. -o build/b-boot $src 1>&2 -exec $cxx -std=c++1y -I$libbutl -I. -o build/b-boot $src +echo $cxx -std=c++1y $cxxflags -I$libbutl -I. -o build/b-boot $src 1>&2 +exec $cxx -std=c++1y $cxxflags -I$libbutl -I. -o build/b-boot $src |