From 44720924b605ba22e607f8264634d101ff286e20 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Thu, 2 Jan 2014 18:12:35 +0100 Subject: [PATCH] case when c classes are brough by msvc but no c compiler is required, demos/c++/wscript on windows --- waflib/Tools/c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/waflib/Tools/c.py b/waflib/Tools/c.py index 25d8689b..4b8046ed 100644 --- a/waflib/Tools/c.py +++ b/waflib/Tools/c.py @@ -11,6 +11,8 @@ from waflib.Tools.ccroot import link_task, stlink_task @TaskGen.extension('.c') def c_hook(self, node): "Bind the c file extension to the creation of a :py:class:`waflib.Tools.c.c` instance" + if not self.env.CC and self.env.CXX: + return self.create_compiled_task('cxx', node) return self.create_compiled_task('c', node) class c(Task.Task):