From 084b18928556640b396d8788145539f5cbd2dbff Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Oct 2019 16:53:00 +0200 Subject: Don't assume which mode (-m32/-m64, etc) is required in environment setup --- etc/environments/default | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'etc/environments/default') 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" -- cgit v1.1