www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - ldc and homebrew in macos

reply Gerardo Cahn <gerardo niuk.org> writes:
A minor problem: when homebrew upgrades llvm in my macos (last 
time, from 20.1.7 to 20.1.8), I need to manually change one line 
in ldc2.conf so that ld doesn't complain; this file 
(/opt/homebrew/Cellar/ldc/1.41.0/etc/ldc2.conf) has a fixed 
reference to  llvm:
...
     lib-dirs = [
         "/opt/homebrew/Cellar/ldc/1.41.0/lib",
         
"/opt/homebrew/Cellar/llvm/20.1.8/lib/clang/20/lib/darwin", // 
compiler-rt directory
     ];
...

Could something be negotiated so that llvm/homebrew scripts 
create a symbolic link, allowing ldc2.conf to be less 
version-specific?

(I know this is more an llvm/homebrew issue, but at the end of 
the day, ldc is affected)

Tks/rgds,

GlC
Jul 11
parent Johan <j j.nl> writes:
On Friday, 11 July 2025 at 17:25:48 UTC, Gerardo Cahn wrote:
 A minor problem: when homebrew upgrades llvm in my macos (last 
 time, from 20.1.7 to 20.1.8), I need to manually change one 
 line in ldc2.conf so that ld doesn't complain
Please report this issue with homebrew. Thanks! Johan
Jul 15