Skip to content

Commit

Permalink
Fix _Language. Wasn't considering non C/C++.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Apr 3, 2024
1 parent cb7ccac commit 3ecefe7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/IKVM.Clang.Sdk/Sdk/targets/IKVM.Clang.Core.targets
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@
<_DebugSymbols Condition=" '$(_DebugSymbols)' == '' ">$(DebugSymbols)</_DebugSymbols>
<_Language>%(Compile.Language)</_Language>
<_Language Condition=" '$(_Language)' == '' ">$(Language)</_Language>
<_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.c' ">C</_Language>
<_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.cpp' ">C++</_Language>
<_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.c' ">c</_Language>
<_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.cpp' ">c++</_Language>
<_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.m' ">objective-c</_Language>
<_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.mm' ">objective-c++</_Language>
<_LanguageStandard>%(Compile.LanguageStandard)</_LanguageStandard>
Expand All @@ -426,8 +426,7 @@
<_Args Include="-fms-compatibility" Condition=" '$(_MsCompatibility)' == 'true' " />
<_Args Include="-fms-compatibility-version" Value="$(_MsCompatibilityVersion)" Separator="=" Condition=" '$(_MsCompatibilityVersion)' != '' " />

<_Args Include="-xc" Condition=" '$(_Language)' == 'C' " />
<_Args Include="-xc++" Condition=" '$(_Language)' == 'C++' " />
<_Args Include="-x $(_Language)" Condition=" '$(_Language)' != '' " />

<_SystemRootDirectories Remove="@(_SystemRootDirectories)" />
<_SystemRootDirectories Include="%(Compile.SystemRootDirectories)" />
Expand Down

0 comments on commit 3ecefe7

Please sign in to comment.