case when c classes are brough by msvc but no c compiler is required, demos/c++/wscript on windows

This commit is contained in:
Thomas Nagy 2014-01-02 18:12:35 +01:00
parent a99ddb808f
commit 44720924b6
1 changed files with 2 additions and 0 deletions

View File

@ -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):