mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
A couple of ldc2 tweaks now druntime compiles.
This commit is contained in:
@@ -318,7 +318,9 @@ int main(int argc, char** argv)
|
||||
}
|
||||
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"));
|
||||
|
||||
@@ -336,11 +336,7 @@ static void LLVM_D_BuildRuntimeModule()
|
||||
|
||||
// Object _d_allocclass(ClassInfo ci)
|
||||
{
|
||||
#if DMDV2
|
||||
std::string fname("_d_newclass");
|
||||
#else
|
||||
std::string fname("_d_allocclass");
|
||||
#endif
|
||||
std::vector<const LLType*> types;
|
||||
types.push_back(classInfoTy);
|
||||
const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false);
|
||||
|
||||
Reference in New Issue
Block a user