Commits

mattip committed 1f3ad48

msvc makefile fixes for debug builds

Comments (0)

Files changed (2)

rpython/translator/c/genc.py

             mk.definition('ASMFILES', sfiles)
             mk.definition('ASMLBLFILES', lblsfiles)
             mk.definition('GCMAPFILES', gcmapfiles)
-            if sys.platform == 'win32':
-                mk.definition('DEBUGFLAGS', '/MD /Zi')
+            if self.translator.platform.name == 'msvc':
+                mk.definition('DEBUGFLAGS', '-MD -Zi')
             else:
                 if self.config.translation.shared:
                     mk.definition('DEBUGFLAGS', '-O2 -fomit-frame-pointer -g -fPIC')
                 mk.rule('.PRECIOUS', '%.s', "# don't remove .s files if Ctrl-C'ed")
 
         else:
-            if sys.platform == 'win32':
-                mk.definition('DEBUGFLAGS', '/MD /Zi')
+            if self.translator.platform.name == 'msvc':
+                mk.definition('DEBUGFLAGS', '-MD -Zi')
             else:
                 mk.definition('DEBUGFLAGS', '-O1 -g')
-        if sys.platform == 'win32':
+        if self.translator.platform.name == 'msvc':
             mk.rule('debug_target', 'debugmode_$(DEFAULT_TARGET)', 'rem')
         else:
             mk.rule('debug_target', '$(TARGET)', '#')

rpython/translator/platform/windows.py

             ('CC_LINK', self.link),
             ('LINKFILES', eci.link_files),
             ('MASM', self.masm),
+            ('MAKE', 'nmake.exe'),
             ('_WIN32', '1'),
             ]
         if self.x64: