From fd3755e35cfbdb3de8727cf25679396d039a447c Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Sat, 10 Feb 2024 04:48:38 +0500 Subject: [PATCH] Remove additional android compilation flags. --- cl_dll/CMakeLists.txt | 3 --- dlls/CMakeLists.txt | 3 --- 2 files changed, 6 deletions(-) diff --git a/cl_dll/CMakeLists.txt b/cl_dll/CMakeLists.txt index f1dce6bf..37c03d7c 100644 --- a/cl_dll/CMakeLists.txt +++ b/cl_dll/CMakeLists.txt @@ -43,9 +43,6 @@ if(NOT MSVC) add_compile_options(-fomit-frame-pointer) # GCC/Clang flag add_compile_options(-ftree-vectorize) # GCC/Clang flag add_compile_options(-funsafe-math-optimizations) # GCC/Clang flag - if(CMAKE_SYSTEM_NAME STREQUAL "Android") - add_compile_options(-O3 -DNDEBUG) # gradle compiles release builds with RelWithDebInfo(-O2 -g) and strips debug symbols. - endif() endif() else() add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE) diff --git a/dlls/CMakeLists.txt b/dlls/CMakeLists.txt index ca69e13d..b78706c5 100644 --- a/dlls/CMakeLists.txt +++ b/dlls/CMakeLists.txt @@ -39,9 +39,6 @@ if(NOT MSVC) add_compile_options(-fomit-frame-pointer) # GCC/Clang flag add_compile_options(-ftree-vectorize) # GCC/Clang flag add_compile_options(-funsafe-math-optimizations) # GCC/Clang flag - if(CMAKE_SYSTEM_NAME STREQUAL "Android") - add_compile_options(-O3 -DNDEBUG) # gradle compiles release builds with RelWithDebInfo(-O2 -g) and strips debug symbols. - endif() endif() else() add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE)