Skip to content
  • Cheng Shao's avatar
    db954955
    hadrian: fix bindist executable wrapper logic for cross targets · db954955
    Cheng Shao authored and Zubin's avatar Zubin committed
    This commit fixes an oversight of hadrian wrapper generation logic:
    when doing cross compilation, `wrapper` is called on executable names
    with cross prefix, therefore we must use `isSuffixOf` when matching to
    take the cross prefix into account. Also add missing cross prefix to
    ghci wrapper content and fix hsc2hs wrapper logic.
    
    (cherry picked from commit edc02197)
    db954955
    hadrian: fix bindist executable wrapper logic for cross targets
    Cheng Shao authored and Zubin's avatar Zubin committed
    This commit fixes an oversight of hadrian wrapper generation logic:
    when doing cross compilation, `wrapper` is called on executable names
    with cross prefix, therefore we must use `isSuffixOf` when matching to
    take the cross prefix into account. Also add missing cross prefix to
    ghci wrapper content and fix hsc2hs wrapper logic.
    
    (cherry picked from commit edc02197)
Loading