mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-01 18:13:18 +01:00
Set global.params.isOS variables so we do not have to modify dmd frontend to use targetTriple
This commit is contained in:
@@ -160,11 +160,7 @@ char *cpp_mangle(Dsymbol *s)
|
||||
cms.components.setDim(0);
|
||||
|
||||
OutBuffer buf;
|
||||
#if IN_LLVM
|
||||
buf.writestring("__Z" + !(global.params.targetTriple.isMacOSX())); // "_Z" for OSX
|
||||
#else
|
||||
buf.writestring("__Z" + !global.params.isOSX); // "_Z" for OSX
|
||||
#endif
|
||||
|
||||
cpp_mangle_name(&buf, &cms, s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user