Ticket #1116: msvc.jam.patch

File msvc.jam.patch, 1.2 KB (added by steve, 15 years ago)
  • msvc.jam.

    old new  
    432432        flags $(toolset).compile CFLAGS $(condition)/<warnings>off : /wd4996 ;
    433433        # 64-bit compatibility warning
    434434        flags $(toolset).compile CFLAGS $(condition)/<warnings>all : /Wp64 ;
     435        # classes with dll-interface warning, always disabled
     436        flags $(toolset).compile CFLAGS $(condition) : /wd4251 /wd4275 ;
     437        # character code page mismatch warning, this will happen to East-Asia language
     438        flags $(toolset).compile CFLAGS $(condition) : /wd4819 ;
    435439    }
    436440   
    437441    #
     
    456460        # "math" tests will fail.
    457461        flags $(toolset).compile CFLAGS $(condition) : /Op ;
    458462
     463        # 8.0 has bad c++ standard extension which will throw many warnings
     464        flags $(toolset).compile CFLAGS $(condition) : /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS ;
     465
    459466        # 7.1 and below have single-threaded static RTL
    460467        flags $(toolset).compile CFLAGS $(condition)/<runtime-debugging>off/<runtime-link>static/<threading>single : /ML ;
    461468        flags $(toolset).compile CFLAGS $(condition)/<runtime-debugging>on/<runtime-link>static/<threading>single : /MLd ;