diff --git a/src/IKVM.Clang.Sdk/Sdk/targets/IKVM.Clang.Core.targets b/src/IKVM.Clang.Sdk/Sdk/targets/IKVM.Clang.Core.targets index 8654872..067cecd 100644 --- a/src/IKVM.Clang.Sdk/Sdk/targets/IKVM.Clang.Core.targets +++ b/src/IKVM.Clang.Sdk/Sdk/targets/IKVM.Clang.Core.targets @@ -400,8 +400,8 @@ <_DebugSymbols Condition=" '$(_DebugSymbols)' == '' ">$(DebugSymbols) <_Language>%(Compile.Language) <_Language Condition=" '$(_Language)' == '' ">$(Language) - <_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.c' ">C - <_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.cpp' ">C++ + <_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.c' ">c + <_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.cpp' ">c++ <_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.m' ">objective-c <_Language Condition=" '$(_Language)' == '' And '%(Compile.Extension)' == '.mm' ">objective-c++ <_LanguageStandard>%(Compile.LanguageStandard) @@ -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)" />