public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] repo/gentoo:master commit in: eclass/
@ 2015-11-28 18:58 99% Justin Lecher
  0 siblings, 0 replies; 1+ results
From: Justin Lecher @ 2015-11-28 18:58 UTC (permalink / raw
  To: gentoo-commits

commit:     64d981bfd079735598dd81c0c56d2b534b3f482c
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 28 18:54:23 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Nov 28 18:57:47 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64d981bf

fortran-2.eclass: fortran_int64_abi_fflags() add

fortran_int64_abi_fflags help you querry for the necessary
compiler flags to enable 64bit int support

Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 eclass/fortran-2.eclass | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index ac89bf1..6f3c4b2 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -77,6 +77,22 @@ for _f_use in ${FORTRAN_NEEDED}; do
 	esac
 done
 
+# @FUNCTION: fortran_int64_abi_fflags
+# @DESCRIPTION: Return the Fortran compiler flag to enable 64 bit integers for
+# array indices
+# @CODE
+fortran_int64_abi_fflags() {
+	debug-print-function ${FUNCNAME} "${@}"
+	_FC=$(tc-getFC)
+	if [[ ${_FC} == *gfortran* ]]; then
+		echo "-fdefault-integer-8"
+	elif [[ ${_FC} == ifort ]]; then
+		echo "-integer-size 64"
+	else
+		die "Compiler flag for 64bit interger for ${_FC} unknown"
+	fi
+}
+
 # @FUNCTION: _fortran_write_testsuite
 # @INTERNAL
 # @DESCRIPTION:


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-11-28 18:58 99% [gentoo-commits] repo/gentoo:master commit in: eclass/ Justin Lecher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox