aboutsummaryrefslogtreecommitdiff
path: root/etc/environments/default
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-19 10:31:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-19 10:37:28 +0200
commita6d27c3bca9e9ed591ae4a6e90666a027dcef2b0 (patch)
tree5380caf7773f7f827cdcabb3d93fb0a1d1894bf6 /etc/environments/default
parente85f2d4e36ec56229b82f617fb8b9717927347ca (diff)
Pass compiler mode as part of config.{c,cxx} in environment scripts
Diffstat (limited to 'etc/environments/default')
-rwxr-xr-xetc/environments/default6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/environments/default b/etc/environments/default
index 16e39d1..2155f72 100755
--- a/etc/environments/default
+++ b/etc/environments/default
@@ -24,10 +24,10 @@ set -e # Exit on errors.
mode=
case "$1" in
x86_64-*)
- #mode="config.cc.coptions+=-m64"
+ #mode=-m64
;;
i?86-*)
- mode="config.cc.coptions+=-m32"
+ mode=-m32
;;
*)
echo "unknown target: '$1'" 1>&2
@@ -36,4 +36,4 @@ case "$1" in
esac
shift
-exec "$@" cc config.c="$c" config.cxx="$cxx" $mode
+exec "$@" cc config.c="$c $mode" config.cxx="$cxx $mode"