From 58ac9c8f6e986bac817ad08d5a2fd11cd167f029 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sat, 27 Dec 2014 21:11:52 +1100 Subject: 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 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 --- settings.in | 1 + 1 file changed, 1 insertion(+) (limited to 'settings.in') 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@"), -- cgit v1.2.1