Skip to content
  • Moritz Angermann's avatar
    Fix Raspberry Pi · dc3b4af6
    Moritz Angermann authored and Ben Gamari's avatar Ben Gamari committed
    This is two fold:
    
    - We did not catch all ARM_ARCH_6 defines. Specifically not `6K` and
      `6KZ`, which is what llvm seems to use these days for
      `arm-none-linux-gnueabihf` (e.g. the triple that's used for raspbian
      as well). Without it, ghc assums we want to compile against some armv7
      system, which raspbian is not (it is armv6 for maximum compatibility
      across the pi family, compromising on using armv7 and up features).
    
    - We stop forcing the -m and -arch flags on macOS. This is troublesome,
      as compiling for a 32bit system (e.g. raspberry pi, on a x86_64 macOS
      system results in the `-m64` flag being passed to to clang as well,
      which in turn figures out that you likely want 64bit, and rewrites
      your taret from `arm-none-linux-gnueabihf` to
      `aarch64-none-linux-gnueabihf`, which is definetly not what you want.
    
    Reviewers: austin, hvr, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie, erikd
    
    Differential Revision: https://phabricator.haskell.org/D3546
    dc3b4af6