mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Fix Android clang warnings due to unused compiler flags
This commit is contained in:
parent
1e94a82ee6
commit
97dab24a69
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ macro(SETUP_HIFI_LIBRARY)
|
||||||
foreach(SRC ${AVX_SRCS})
|
foreach(SRC ${AVX_SRCS})
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS /arch:AVX)
|
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS /arch:AVX)
|
||||||
elseif (APPLE OR UNIX)
|
elseif (APPLE OR (UNIX AND NOT ANDROID))
|
||||||
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS -mavx)
|
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS -mavx)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
@ -30,7 +30,7 @@ macro(SETUP_HIFI_LIBRARY)
|
||||||
foreach(SRC ${AVX2_SRCS})
|
foreach(SRC ${AVX2_SRCS})
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS /arch:AVX2)
|
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS /arch:AVX2)
|
||||||
elseif (APPLE OR UNIX)
|
elseif (APPLE OR (UNIX AND NOT ANDROID))
|
||||||
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS "-mavx2 -mfma")
|
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS "-mavx2 -mfma")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
@ -44,7 +44,7 @@ macro(SETUP_HIFI_LIBRARY)
|
||||||
if (COMPILER_SUPPORTS_AVX512)
|
if (COMPILER_SUPPORTS_AVX512)
|
||||||
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS /arch:AVX512)
|
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS /arch:AVX512)
|
||||||
endif()
|
endif()
|
||||||
elseif (APPLE OR UNIX)
|
elseif (APPLE OR (UNIX AND NOT ANDROID))
|
||||||
check_cxx_compiler_flag("-mavx512f" COMPILER_SUPPORTS_AVX512)
|
check_cxx_compiler_flag("-mavx512f" COMPILER_SUPPORTS_AVX512)
|
||||||
if (COMPILER_SUPPORTS_AVX512)
|
if (COMPILER_SUPPORTS_AVX512)
|
||||||
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS -mavx512f)
|
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS -mavx512f)
|
||||||
|
|
Loading…
Reference in a new issue