mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 21:03:14 +01:00
Default to PIC on OS X.
driver/target.h is due for a refactoring after the next release is branched off.
This commit is contained in:
@@ -547,7 +547,7 @@ int main(int argc, char** argv)
|
||||
VersionCondition::addPredefinedGlobalIdent("D_LP64");
|
||||
}
|
||||
|
||||
if (mRelocModel == llvm::Reloc::PIC_) {
|
||||
if (gTargetMachine->getRelocationModel() == llvm::Reloc::PIC_) {
|
||||
VersionCondition::addPredefinedGlobalIdent("D_PIC");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user