premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

Disable language extension feature for certain files in premake5

Open roops123 opened this issue 9 months ago • 5 comments

Hii folks, I am new to premake. I want to know how to add disable language extension for certain files.

This is what I required:

    ```
<ClCompile Include="folder_path\ABC.c">
      <DisableLanguageExtensions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</DisableLanguageExtensions>
      <DisableLanguageExtensions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</DisableLanguageExtensions>
      <DisableLanguageExtensions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</DisableLanguageExtensions>
      <DisableLanguageExtensions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</DisableLanguageExtensions>
    </ClCompile>

I am able to set project configuration, but I am not able to change individual file configuration in premake script.

roops123 avatar Jan 17 '25 09:01 roops123