digitalmars.D.learn - DMD windows and Clang's llvm-link.exe
- Carl Sturtivant (3/3) Mar 09 I'd like to see if I can get dmd to work correctly with Clang
- Richard (Rikki) Andrew Cattermole (4/7) Mar 09 lld is used and distributed with dmd and ldc.
- Carl Sturtivant (21/26) Mar 09 Interesting, perhaps I should have known that, though I have not
- Richard (Rikki) Andrew Cattermole (4/7) Mar 09 Yes, nobody has updated it.
- Carl Sturtivant (3/10) Mar 09 No technical reason then, I assume you mean.
I'd like to see if I can get dmd to work correctly with Clang rather than MS tools. Can anyone share any experience they've had with this or any understanding of the situation?
Mar 09
On 10/03/2024 11:02 AM, Carl Sturtivant wrote:I'd like to see if I can get dmd to work correctly with Clang rather than MS tools. Can anyone share any experience they've had with this or any understanding of the situation?lld is used and distributed with dmd and ldc. That is known to work. If you have MSVC, it'll prefer that however.
Mar 09
On Saturday, 9 March 2024 at 22:07:05 UTC, Richard (Rikki) Andrew Cattermole wrote:lld is used and distributed with dmd and ldc. That is known to work. If you have MSVC, it'll prefer that however.Interesting, perhaps I should have known that, though I have not used DMD on Windows for many years until now. I have this from a 64-bit "Developer Command Prompt": ```lld-link --versionLLD 9.0.0 (https://github.com/dlang/installer d4266cf3dccfd7a7d361d28143f86e98b2da8db8)dmd --versionDMD64 D Compiler v2.107.0 Copyright (C) 1999-2024 by The D Language Foundation, All Rights Reserved written by Walter Bright ``` Whereas from an MSYS2 Clang64 terminal I have this: ``` $ lld-link --version LLD 17.0.6$ clang --version clang version 17.0.6 ``` suggesting that there's a reason version 9 instead of 17 of lld is being used in the latest DMD installation, that may be relevant what I'd like to try. Any idea what that might be?
Mar 09
On 10/03/2024 4:46 PM, Carl Sturtivant wrote:suggesting that there's a reason version 9 instead of 17 of lld is being used in the latest DMD installation, that may be relevant what I'd like to try. Any idea what that might be?Yes, nobody has updated it. https://github.com/dlang/installer/blob/50f5825e9d9bf44afb9108f0c1a01a8038d2f156/.github/workflows/build_windows.yml#L22 The ldc one should match whatever LLVM is which is newer.
Mar 09
On Sunday, 10 March 2024 at 04:22:20 UTC, Richard (Rikki) Andrew Cattermole wrote:On 10/03/2024 4:46 PM, Carl Sturtivant wrote:No technical reason then, I assume you mean.suggesting that there's a reason version 9 instead of 17 of lld is being used in the latest DMD installation, that may be relevant what I'd like to try. Any idea what that might be?Yes, nobody has updated it. https://github.com/dlang/installer/blob/50f5825e9d9bf44afb9108f0c1a01a8038d2f156/.github/workflows/build_windows.yml#L22 The ldc one should match whatever LLVM is which is newer.
Mar 09