Skip to content

fix: do not add LLVM libraries to dyld by default #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged

fix: do not add LLVM libraries to dyld by default #388

merged 1 commit into from
Apr 7, 2025

Conversation

aminya
Copy link
Owner

@aminya aminya commented Apr 7, 2025

On MacOS, the LLVM binaries could conflict with the system libraries. It's better to intentionally use the LLVM binaries.

Now, LLVM_DYLD_LIBRARY_PATH and LLVM_LD_LIBRARY_PATH are used instead of DYLD_LIBRARY_PATH and LD_LIBRARY_PATH.

In bashrc, after sourcing cpprc, you could

export LD_LIBRARY_PATH="$LLVM_LD_LIBRARY_PATH;$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="$LLVM_DYLD_LIBRARY_PATH;$DYLD_LIBRARY_PATH"

Could also fix #374

On MacOS, the LLVM binaries could conflict with the system libraries. It's better to intentionally use the LLVM binaries.

Now, `LLVM_DYLD_LIBRARY_PATH` and `LLVM_LD_LIBRARY_PATH` are used instead of `DYLD_LIBRARY_PATH` and `LD_LIBRARY_PATH`.

In bashrc, after sourcing cpprc, you could
```shell
export LD_LIBRARY_PATH="$LLVM_LD_LIBRARY_PATH;$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="$LLVM_DYLD_LIBRARY_PATH;$DYLD_LIBRARY_PATH"
```
@aminya aminya merged commit ad7d44b into master Apr 7, 2025
27 checks passed
@aminya aminya deleted the llvm branch May 20, 2025 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brew LLVM OpenMP
1 participant