Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow BDWGC to be linked dynamically
This is useful for debugging, where profilers intercept and override dynamically linked symbols (e.g. `malloc` and `free`). As of this commit, there is no way to build a custom BDWGC fork and have that dynamically link to a program compiled with Alloy automatically. This is because `cargo` does not support bubbling up linker args to the final linked binary, so there is no way to programmatically set the rpath for BDWGC to the OUT directory in `library/bdwgc` [1]. Alloy programs must therefore set the `LD_PRELOAD` environment variable to prevent it from linking against the system libgc. [1]: rust-lang/cargo#9554
- Loading branch information