| 291 | | self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GX' , |
| 292 | | '/DNDEBUG'] |
| 293 | | self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GX', |
| 294 | | '/Z7', '/D_DEBUG'] |
| | 295 | if get_build_version() > 7: |
| | 296 | self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/EHsc' , |
| | 297 | '/DNDEBUG'] |
| | 298 | self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/EHsc', |
| | 299 | '/Z7', '/D_DEBUG'] |
| | 300 | else: |
| | 301 | self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GX' , |
| | 302 | '/DNDEBUG'] |
| | 303 | self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GX', |
| | 304 | '/Z7', '/D_DEBUG'] |
| | 305 | |
| | 623 | |
| | 624 | #pks |
| | 625 | if self.__version >= 8: |
| | 626 | |
| | 627 | # With .NET 8.0, the environment variables are not stored in the |
| | 628 | # registry anymore. They are stored in a platform specific file |
| | 629 | # under C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages\ |
| | 630 | # Instead of parsing these files (which I don't know how to do), |
| | 631 | # we simply rely on the fact that the python script is being |
| | 632 | # called from a "Visual Studio 2005 Command Prompt". In these |
| | 633 | # consoles, the environment variables are properly defined. |
| | 634 | |
| | 635 | real_path = path |
| | 636 | if path == "library": |
| | 637 | real_path = "lib"; |
| | 638 | return string.split(os.environ[real_path], ";") |