No -mtriple param being passed to opt/llc when cross compiling
Currently trying to build an x86_64-linu to arm64-linux cross-compiler.
After fixing some code in
rts/StgCRun.c i ran into an issue where ghc was calling
llc and generating
x86_64 assembly instead of
For now, I've hacked
compiler/main/SysTools.hs to add
-mtriple=aarch64-linux-gnu to the
llc command lines and that allows me to get a bit further in the compile process.
For cross-compiling, passing something like this
-mtriple=... is pretty much mandatory. I suggest adding it by doing the following:
- Add a
crossCompiling :: Boolfield to
- Add the
-mtriple=...string to the
Settingswhen we are cross-compiling.
- Possibly also store the triple string in the