Forward CCFLAGS to Visual Studio project for IntelliSense.
This commit is contained in:
parent
6326454729
commit
8b5d66dbec
@ -894,7 +894,10 @@ def _dump() -> None:
|
|||||||
'args': target.args,
|
'args': target.args,
|
||||||
# 'kwargs': kwargs, <- circular dependency here and the json encoder doesn't like that
|
# 'kwargs': kwargs, <- circular dependency here and the json encoder doesn't like that
|
||||||
'CPPDEFINES': kwargs.get('CPPDEFINES', env['CPPDEFINES']),
|
'CPPDEFINES': kwargs.get('CPPDEFINES', env['CPPDEFINES']),
|
||||||
'CPPPATH': kwargs.get('CPPPATH', env['CPPPATH'])
|
'CPPPATH': kwargs.get('CPPPATH', env['CPPPATH']),
|
||||||
|
'CFLAGS': kwargs.get('CFLAGS', env['CFLAGS']),
|
||||||
|
'CCFLAGS': kwargs.get('CCFLAGS', env['CCFLAGS']),
|
||||||
|
'CXXFLAGS': kwargs.get('CXXFLAGS', env['CXXFLAGS'])
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<GenerateDebugInformation>{{ build_type != 'release' and 'true' or 'false' }}</GenerateDebugInformation>
|
<GenerateDebugInformation>{{ build_type != 'release' and 'true' or 'false' }}</GenerateDebugInformation>
|
||||||
<AdditionalIncludeDirectories>{{ get_target_property(build_type, target.name, 'CPPPATH') | join(';') }};%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>{{ get_target_property(build_type, target.name, 'CPPPATH') | join(';') }};%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<MsExtensions>false</MsExtensions>
|
<MsExtensions>false</MsExtensions>
|
||||||
<AdditionalOptions>/std:{{ ms_cxx_standard }}</AdditionalOptions>
|
<AdditionalOptions>{{ get_target_property(build_type, target.name, 'CCFLAGS') | join(' ') }}</AdditionalOptions> {# + get_target_property(build_type, target.name, 'CXXFLAGS')) #}
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user