facebook / buck2

Build system, successor to Buck

Home Page:https://buck2.build/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

haskell_library fails on MacOS

aherrmann opened this issue · comments

Trying to build a haskell_library target with Buck2 on MacOS fails with a linker error of the form

ld: unknown option: -soname

The reason seems to be that platform specific properties are currently hard-coded to Linux values in the Haskell rules, e.g. the -soname flag. For reference, the cxx toolchain distinguishes such flags by linker type.