Building LDC for the first time

Daniel N via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Aug 27 09:59:41 PDT 2014


On Wednesday, 27 August 2014 at 14:59:33 UTC, Daniel N wrote:
> === 35 && -disable-linker-strip-dead ===
> .text
> .section	.text,"xr",discard,__D4dial13__T6createTiZ6createFNaNbNfiZi

PS I found a fix so that I don't have to specify 
-disable-linker-strip-dead

.\driver\targetmachine.cpp

= Before =
if (!noLinkerStripDead && (triple.getOS() == llvm::Triple::Linux 
|| triple.getOS() == llvm::Triple::Win32))

But for "LDC_LLVM_VER >= 305" I guess you need to use
"triple.isWindowsMSVCEnvironment()" instead of "triple.getOS() == 
llvm::Triple::Win32".

I didn't find a fix for the 2nd issue yet though.

Regards,
Daniel N


More information about the digitalmars-d-ldc mailing list