Ticket #1526: msvc9.0.patch

File msvc9.0.patch, 2.1 KB (added by Sija, 15 years ago)
  • boost/config/compiler/visualc.hpp

     
    168168#error "Compiler not supported or configured - please reconfigure"
    169169#endif
    170170//
    171 // last known and checked version is 1400 (VC8):
    172 #if (_MSC_VER > 1400)
     171// last known and checked version is 1500 (VC9):
     172#if (_MSC_VER > 1500)
    173173#  if defined(BOOST_ASSERT_CONFIG)
    174174#     error "Unknown compiler version - please run the configure tests and report the results"
    175175#  else
  • tools/build/v2/tools/msvc.jam

     
    231231        {
    232232            # Even if version is not explicitly specified, try to detect the version
    233233            # from the path.
     234            if [ MATCH "(Microsoft Visual Studio 9.0)" : $(command) ]
     235            {
     236            version = 9.0 ;
     237            }
    234238            if [ MATCH "(Microsoft Visual Studio 8)" : $(command) ]
    235239            {
    236240                version = 8.0 ;
     
    913917
    914918.ProgramFiles = [ path.make [ common.get-program-files-dir ] ] ;
    915919
    916 .known-versions = 8.0 8.0express 7.1 7.1toolkit 7.0 6.0 ;
     920.known-versions = 9.0 9.0express 8.0 8.0express 7.1 7.1toolkit 7.0 6.0 ;
    917921
    918922# Version aliases
    919923.version-alias-6 = 6.0 ;
    920924.version-alias-6.5 = 6.0 ;
    921925.version-alias-7 = 7.0 ;
    922926.version-alias-8 = 8.0 ;
     927.version-alias-9 = 9.0 ;
    923928 
    924929# Name of the registry key that contains Visual C++ installation path
    925930#   (relative to "HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft"
     
    928933.version-7.1-reg = "VisualStudio\\7.1\\Setup\\VC" ;
    929934.version-8.0-reg = "VisualStudio\\8.0\\Setup\\VC" ;
    930935.version-8.0express-reg = "VCExpress\\8.0\\Setup\\VC" ;
     936.version-9.0-reg = "VisualStudio\\9.0\\Setup\\VC" ;
     937.version-9.0express-reg = "VCExpress\\9.0\\Setup\\VC" ;
    931938
    932939# Visual C++ Toolkit 2003 do not store its installation path in the registry.
    933940# The environment variable 'VCToolkitInstallDir' and the default installation