dep/vixl: Fix build with clang-cl

This commit is contained in:
Stenzek 2023-10-01 20:47:16 +10:00
parent 60cd1d540c
commit 9fc736eaa0
2 changed files with 2 additions and 1 deletions

View file

@ -48,7 +48,7 @@ namespace vixl {
#ifdef __GNUC__ #ifdef __GNUC__
#define VIXL_HAS_DEPRECATED_WITH_MSG #define VIXL_HAS_DEPRECATED_WITH_MSG
#elif defined(__clang__) #elif defined(__clang__)
#ifdef __has_extension(attribute_deprecated_with_message) #if __has_extension(attribute_deprecated_with_message)
#define VIXL_HAS_DEPRECATED_WITH_MSG #define VIXL_HAS_DEPRECATED_WITH_MSG
#endif #endif
#endif #endif

View file

@ -156,6 +156,7 @@
<WarningLevel>TurnOffAllWarnings</WarningLevel> <WarningLevel>TurnOffAllWarnings</WarningLevel>
<PreprocessorDefinitions>$(VixlPreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>$(VixlPreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\vixl;$(VixlIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\vixl;$(VixlIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions Condition="$(Configuration.Contains(Clang))"> -Wno-deprecated-enum-enum-conversion %(AdditionalOptions)</AdditionalOptions>
</ClCompile> </ClCompile>
</ItemDefinitionGroup> </ItemDefinitionGroup>