From 86b50169a0b9f98ebe6096f1945e173894f36f7c Mon Sep 17 00:00:00 2001 From: Iscle Date: Sat, 2 Sep 2023 14:11:01 +0200 Subject: [PATCH] Compile with -O3 and -flto. Also strip the binaries. Fixes #17. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc7707f..afacb14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,4 +82,5 @@ add_library( ${FILES}) target_link_libraries(v4a_re log) # kissfft) +target_compile_options(v4a_re PRIVATE -flto -O3 -DNDEBUG) #target_compile_options(v4afx_r PRIVATE -O2 -DNDEBUG -Wall -Wsign-conversion -Wno-unused-result -Wno-unneeded-internal-declaration -fstrict-aliasing -fvisibility=hidden -Wextra -Wno-unused-parameter)