From a24a5f77b61676b4b51179b9ac0113769d822c61 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 Dec 2013 16:26:29 +0530 Subject: [PATCH] ... --- setup/extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/extensions.py b/setup/extensions.py index 28585c1630..0029adf4cb 100644 --- a/setup/extensions.py +++ b/setup/extensions.py @@ -427,7 +427,7 @@ class Build(Command): obj = self.j(obj_dir, os.path.splitext(self.b(src))[0]+'.o') objects.append(obj) if self.newer(obj, [src]+ext.headers): - inf = '/Tp' if src.endswith('.cpp') else '/Tc' + inf = '/Tp' if src.endswith('.cpp') or src.endswith('.cxx') else '/Tc' sinc = [inf+src] if iswindows else ['-c', src] oinc = ['/Fo'+obj] if iswindows else ['-o', obj] cmd = [compiler] + cflags + ext.cflags + einc + sinc + oinc