Don't check non-MSVC options with MSVC for tgcalls

This commit is contained in:
Ilya Fedin 2025-04-30 23:31:30 +04:00 committed by John Preston
parent 3ac03b43e1
commit fe3d8ea2be

View file

@ -225,8 +225,7 @@ PRIVATE
RTC_ENABLE_VP9 RTC_ENABLE_VP9
) )
if (WIN32) if (APPLE)
elseif (APPLE)
target_compile_options(lib_tgcalls target_compile_options(lib_tgcalls
PRIVATE PRIVATE
-fobjc-arc -fobjc-arc
@ -253,14 +252,16 @@ elseif (APPLE)
) )
endif() endif()
target_compile_options_if_exists(lib_tgcalls if (NOT MSVC)
PRIVATE target_compile_options_if_exists(lib_tgcalls
PRIVATE
-Wno-deprecated-volatile -Wno-deprecated-volatile
-Wno-ambiguous-reversed-operator -Wno-ambiguous-reversed-operator
-Wno-deprecated-declarations -Wno-deprecated-declarations
-Wno-unqualified-std-cast-call -Wno-unqualified-std-cast-call
-Wno-unused-function -Wno-unused-function
) )
endif()
remove_target_sources(lib_tgcalls ${tgcalls_loc} remove_target_sources(lib_tgcalls ${tgcalls_loc}
platform/android/AndroidContext.cpp platform/android/AndroidContext.cpp