
#9895: No -mtriple param being passed to opt/llc when cross compiling -------------------------------------+------------------------------------- Reporter: erikd | Owner: erikd Type: feature | Status: new request | Milestone: 7.10.1 Priority: normal | Version: 7.9 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Moderate (less Unknown/Multiple | than a day) Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by erikd): Luite clued me in on the existance of a "settings" file which is read by the function `initSysTools` in the `SysTools` module. Currently the extra options for LLVM's `opt` and `llc` are initialized as: {{{#!hs sOpt_lo = [], sOpt_lc = [], }}} Adding the `-mtriple=...` option here seems the obvious place. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9895#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler