Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Ben Gamari's avatar
    35bdab1c
    configure: Check CC_STAGE0 for --target support · 35bdab1c
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    We previously only checked the stage 1/2 compiler
    for --target support. We got away with this for quite a while but it
    eventually caught up with us in #21579, where `bytestring`'s new NEON
    implementation was unbuildable on Darwin due to Rosetta's seemingly
    random logic for determining which executable image to execute. This
    lead to a confusing failure to build `bytestring`'s cbits, when `clang`
    tried to compile NEON builtins while targetting x86-64.
    
    Fix this by checking CC_STAGE0 for --target support.
    
    Fixes #21579.
    35bdab1c
    History
    configure: Check CC_STAGE0 for --target support
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    We previously only checked the stage 1/2 compiler
    for --target support. We got away with this for quite a while but it
    eventually caught up with us in #21579, where `bytestring`'s new NEON
    implementation was unbuildable on Darwin due to Rosetta's seemingly
    random logic for determining which executable image to execute. This
    lead to a confusing failure to build `bytestring`'s cbits, when `clang`
    tried to compile NEON builtins while targetting x86-64.
    
    Fix this by checking CC_STAGE0 for --target support.
    
    Fixes #21579.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.