Prepare generic x86 TargetABI for proper MSVC support

Based on Rainer's work in
3e36652c2c
This commit is contained in:
Martin 2015-12-06 18:47:16 +01:00
parent 5fce371c91
commit e7f26a94b0
7 changed files with 21 additions and 9 deletions

View file

@ -37,7 +37,9 @@ void Target::init() {
c_longsize = global.params.is64bit ? 8 : 4;
c_long_doublesize = realsize;
reverseCppOverloads = false; // DMC is not supported.
// according to DMD, only for 32-bit MSVC++:
reverseCppOverloads = !global.params.is64bit &&
global.params.targetTriple.isWindowsMSVCEnvironment();
}
/******************************