mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-08 09:25:08 +01:00
case when c classes are brough by msvc but no c compiler is required, demos/c++/wscript on windows
This commit is contained in:
parent
a99ddb808f
commit
44720924b6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user