mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
Merge pull request #3808 from JohanEngelen/gh3802
Fix issue #3802 - Fix size_t size for 32bit ABI on 64bit architectures.
This commit is contained in:
commit
d38c576919
5 changed files with 52 additions and 21 deletions
|
@ -728,6 +728,8 @@ void registerPredefinedTargetVersions() {
|
|||
// Set versions for arch bitwidth
|
||||
if (gDataLayout->getPointerSizeInBits() == 64) {
|
||||
VersionCondition::addPredefinedGlobalIdent("D_LP64");
|
||||
} else if (triple.isArch64Bit()) {
|
||||
VersionCondition::addPredefinedGlobalIdent("D_X32");
|
||||
} else if (triple.isArch16Bit()) {
|
||||
VersionCondition::addPredefinedGlobalIdent("D_P16");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue