mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Correctly define D_PIC version identifier when relocation model is PIC.
This commit is contained in:
@@ -593,6 +593,10 @@ LDC_TARGETS
|
||||
VersionCondition::addPredefinedGlobalIdent("D_LP64");
|
||||
}
|
||||
|
||||
if (mRelocModel == llvm::Reloc::PIC_) {
|
||||
VersionCondition::addPredefinedGlobalIdent("D_PIC");
|
||||
}
|
||||
|
||||
// parse the OS out of the target triple
|
||||
// see http://gcc.gnu.org/install/specific.html for details
|
||||
// also llvm's different SubTargets have useful information
|
||||
|
||||
Reference in New Issue
Block a user