# HG changeset patch # User Robert Clipsham # Date 1247139368 -3600 # Node ID f19adff1881311736eaa3c696a4dc4561919f3a7 # Parent 54b3c1394d620a6a8f464e430897a8169f1c6c1a A couple of ldc2 tweaks now druntime compiles. diff -r 54b3c1394d62 -r f19adff18813 gen/main.cpp --- a/gen/main.cpp Tue Jul 07 02:26:11 2009 +0100 +++ b/gen/main.cpp Thu Jul 09 12:36:08 2009 +0100 @@ -318,7 +318,9 @@ } else if (!noDefaultLib) { -#if !DMDV2 +#if DMDV2 + global.params.linkswitches->push(mem.strdup("-ldruntime-ldc")); +#else global.params.linkswitches->push(mem.strdup("-lldc-runtime")); global.params.linkswitches->push(mem.strdup("-ltango-cc-tango")); global.params.linkswitches->push(mem.strdup("-ltango-gc-basic")); diff -r 54b3c1394d62 -r f19adff18813 gen/runtime.cpp --- a/gen/runtime.cpp Tue Jul 07 02:26:11 2009 +0100 +++ b/gen/runtime.cpp Thu Jul 09 12:36:08 2009 +0100 @@ -336,11 +336,7 @@ // Object _d_allocclass(ClassInfo ci) { -#if DMDV2 - std::string fname("_d_newclass"); -#else std::string fname("_d_allocclass"); -#endif std::vector types; types.push_back(classInfoTy); const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false);