Forward CCFLAGS to Visual Studio project for IntelliSense.

This commit is contained in:
Patrick Wuttke 2025-07-14 18:51:41 +02:00
parent 6326454729
commit 8b5d66dbec
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -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 %}