aboutsummaryrefslogtreecommitdiff
path: root/etc/environments/default
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-07 16:53:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-08 11:23:52 +0200
commit084b18928556640b396d8788145539f5cbd2dbff (patch)
tree9fdff81898de125b13fd11be29c2e4c474258784 /etc/environments/default
parent3e888ccbc044f1b87140db8c8523d793fc7f6481 (diff)
Don't assume which mode (-m32/-m64, etc) is required in environment setup
Diffstat (limited to 'etc/environments/default')
-rwxr-xr-xetc/environments/default9
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/environments/default b/etc/environments/default
index cee5ed2..16e39d1 100755
--- a/etc/environments/default
+++ b/etc/environments/default
@@ -7,11 +7,9 @@
#
# Environment setup script for C/C++ compilation.
#
-# Note that we assume the compiler's default target is x86_64-* and, if
-# requested, i?86-* can be selected with -m32. For other targets you will
-# need to adjust the mode selection below.
-#
+# NOTE: don't forget to adjust the target mode selection below.
+#
c=gcc
cxx=g++
@@ -23,9 +21,10 @@ set -e # Exit on errors.
# Based on target determine what we are building.
#
+mode=
case "$1" in
x86_64-*)
- mode=
+ #mode="config.cc.coptions+=-m64"
;;
i?86-*)
mode="config.cc.coptions+=-m32"