summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-05-11 18:17:02 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2017-05-11 18:31:44 +0800
commit1345c7cc42c45e63ab1726a8fd24a7e4d4222467 (patch)
tree0738780f17b5415e4125b66e358fca046a11815a /aclocal.m4
parent418bcf736cc8d861f338e09f278091ba3657644f (diff)
downloadhaskell-1345c7cc42c45e63ab1726a8fd24a7e4d4222467.tar.gz
Pass LLVMTarget (identical to --target)
Sometimes it might be of interest to have access to the raw target value when calling subcommands (e.g. llvm tools with --target), as such we forward the specified (or inferred) --target for later consumption. Reviewers: austin, hvr, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie, erikd Differential Revision: https://phabricator.haskell.org/D3559
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 0d113c1da8..a7920a71ac 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -136,9 +136,13 @@ AC_DEFUN([FPTOOLS_SET_PLATFORM_VARS],
TargetVendor_CPP=` echo "$TargetVendor" | sed -e 's/\./_/g' -e 's/-/_/g'`
TargetOS_CPP=` echo "$TargetOS" | sed -e 's/\./_/g' -e 's/-/_/g'`
+ # we intend to pass trough --targets to llvm as is.
+ LLVMTarget_CPP=` echo "$target"`
+
echo "GHC build : $BuildPlatform"
echo "GHC host : $HostPlatform"
echo "GHC target : $TargetPlatform"
+ echo "LLVM target: $target"
AC_SUBST(BuildPlatform)
AC_SUBST(HostPlatform)
@@ -154,6 +158,7 @@ AC_DEFUN([FPTOOLS_SET_PLATFORM_VARS],
AC_SUBST(HostOS_CPP)
AC_SUBST(BuildOS_CPP)
AC_SUBST(TargetOS_CPP)
+ AC_SUBST(LLVMTarget_CPP)
AC_SUBST(HostVendor_CPP)
AC_SUBST(BuildVendor_CPP)