Use -Ofast for all codecs that don't break with it

This commit is contained in:
jacqueline
2024-02-14 17:47:46 +11:00
parent 4bc77f901b
commit 10770e0f54
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -41,5 +41,6 @@ target_compile_options(${COMPONENT_LIB}
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-implicit-function-declaration>
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-stringop-overflow>
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-fPIC>
-Ofast
)
+1
View File
@@ -2,3 +2,4 @@
#
# SPDX-License-Identifier: GPL-3.0-only
idf_component_register(SRCS miniflac.c INCLUDE_DIRS .)
target_compile_options("${COMPONENT_LIB}" PRIVATE -Ofast)
+1 -1
View File
@@ -5,4 +5,4 @@ idf_component_register(
SRCS bitwise.c codebook.c dsp.c floor0.c floor1.c floor_lookup.c framing.c
info.c mapping0.c mdct.c misc.c res012.c vorbisfile.c
INCLUDE_DIRS ".")
target_compile_options("${COMPONENT_LIB}" PRIVATE -Wno-error=misleading-indentation -Wno-error=maybe-uninitialized -Wno-error=char-subscripts -Wno-error=unused-label)
target_compile_options("${COMPONENT_LIB}" PRIVATE -Ofast -Wno-error=misleading-indentation -Wno-error=maybe-uninitialized -Wno-error=char-subscripts -Wno-error=unused-label)