Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

cc_library dependencies aren't loaded on MacOS #6

@judah

Description

@judah

GHC expects shared libraries to be .dylib on MacOS, but Bazel cc_library rules always emit .so:

$ hrepl hrepl/tests:CLib1
...
GHCi, version 8.6.5: http://www.haskell.org/ghc/  :? for help
<command line>: user specified .o/.so/.DLL could not be loaded (dlopen(libhrepl_Stests_Slibclib1.dylib, 5): image not found)
Whilst trying to load:  (dynamic) hrepl_Stests_Slibclib1
Additional directories searched:   bazel-out/darwin-fastbuild/bin/_solib_darwin
Error running GHCi.

rules_haskell uses cc_wrapper to work around this. We can probably do something similar for hrepl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions