summaryrefslogtreecommitdiff
path: root/settings.in
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2014-12-27 21:11:52 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2014-12-29 10:42:53 +1100
commit58ac9c8f6e986bac817ad08d5a2fd11cd167f029 (patch)
tree3a8889d2ae51f3301629f29fddfb1b43c01dc861 /settings.in
parent0cc0cc8688ddb53db65a73d7d562e9564cfad22b (diff)
downloadhaskell-58ac9c8f6e986bac817ad08d5a2fd11cd167f029.tar.gz
LlvmCodeGen cross-compiling fixes (#9895)
Summary: * Throw an error when cross-compiling without a target definition. When cross compiling via LLVM, a target 'datalayout' and 'triple' must be defined or LLVM will generate code for the compile host instead of the compile target. * Add aarch64-unknown-linux-gnu target. The datalayout and triple lines were found by using clang to compile a small C program and -emit-llvm to get the LLVM IR output. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com> Test Plan: validate Reviewers: rwbarton, carter, hvr, bgamari, austin Reviewed By: austin Subscribers: carter, thomie, garious Differential Revision: https://phabricator.haskell.org/D585 GHC Trac Issues: #9895
Diffstat (limited to 'settings.in')
-rw-r--r--settings.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings.in b/settings.in
index 1bcb4aebc9..e8cdad34f8 100644
--- a/settings.in
+++ b/settings.in
@@ -18,6 +18,7 @@
("windres command", "@SettingsWindresCommand@"),
("libtool command", "@SettingsLibtoolCommand@"),
("perl command", "@SettingsPerlCommand@"),
+ ("cross compiling", "@CrossCompiling@"),
("target os", "@HaskellTargetOs@"),
("target arch", "@HaskellTargetArch@"),
("target word size", "@WordSize@"),