tests: Added SunCC x64 support

git-svn-id: http://pugixml.googlecode.com/svn/trunk@510 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-06-11 07:30:36 +00:00
parent 6e1777619e
commit f8179496c7
3 changed files with 16 additions and 3 deletions

View File

@ -360,6 +360,17 @@ else if ( $(toolset:I=^bcc) )
}
else if ( $(toolset:I=^suncc) )
{
if ( $(toolset:I=_x64) )
{
ARCH = -m64 ;
}
else
{
ARCH = -m32 ;
}
LDFLAGS += $(ARCH) ;
rule GetCFlags CONFIG : DEFINES
{
local RESULT = -D$(DEFINES) ;
@ -380,6 +391,8 @@ else if ( $(toolset:I=^suncc) )
RESULT += -noex ;
}
RESULT += $(ARCH) ;
return $(RESULT) ;
}

View File

@ -26,7 +26,7 @@ sub gcctoolset
}
$fast = (shift eq 'fast');
@toolsets = ($^O =~ /MSWin/) ? (bcc, cw, dmc, ic8, ic9, ic9_x64, ic10, ic10_x64, ic11, ic11_x64, mingw34, mingw44, mingw45, mingw45_0x, mingw46_x64, msvc6, msvc7, msvc71, msvc8, msvc8_x64, msvc9, msvc9_x64, msvc10, msvc10_x64) : ($^O =~ /solaris/) ? (suncc) : &gcctoolset();
@toolsets = ($^O =~ /MSWin/) ? (bcc, cw, dmc, ic8, ic9, ic9_x64, ic10, ic10_x64, ic11, ic11_x64, mingw34, mingw44, mingw45, mingw45_0x, mingw46_x64, msvc6, msvc7, msvc71, msvc8, msvc8_x64, msvc9, msvc9_x64, msvc10, msvc10_x64) : ($^O =~ /solaris/) ? (suncc, suncc_x64) : &gcctoolset();
@configurations = (debug, release);
@defines = (PUGIXML_NO_XPATH, PUGIXML_NO_EXCEPTIONS, PUGIXML_NO_STL, PUGIXML_WCHAR_MODE);
$stddefine = 'PUGIXML_STANDARD';

View File

@ -7,7 +7,7 @@ sub prettysuffix
return " C++0x" if ($suffix eq '_0x');
return " x64" if ($suffix eq '_x64');
return " PowerPC" if ($suffix eq '_ppc');
return " PPC" if ($suffix eq '_ppc');
return "";
}
@ -19,7 +19,7 @@ sub prettytoolset
return "Borland C++ 5.82" if ($toolset eq 'bcc');
return "Metrowerks CodeWarrior 8" if ($toolset eq 'cw');
return "Digital Mars C++ 8.51" if ($toolset eq 'dmc');
return "Sun C++ 5.10" if ($toolset eq 'suncc');
return "Sun C++ 5.10" . prettysuffix($1) if ($toolset =~ /^suncc(.*)$/);
return "Intel C++ Compiler $1.0" . prettysuffix($2) if ($toolset =~ /^ic(\d+)(.*)$/);
return "MinGW (GCC $1.$2)" . prettysuffix($3) if ($toolset =~ /^mingw(\d)(\d)(.*)$/);