Add option to not use file I/O in libFLAC.

This commit is contained in:
2021-11-12 07:57:06 +00:00
parent db1d1e609b
commit 86f727bc4e
2 changed files with 2 additions and 1 deletions

2
3rdparty/flac vendored

1
3rdparty/flac.cmake vendored
View File

@@ -154,6 +154,7 @@ target_sources("Aaru.Compression.Native" PRIVATE
$<$<BOOL:${OGG_FOUND}>:ogg_mapping.c>)
target_compile_definitions("Aaru.Compression.Native" PUBLIC FLAC__NO_DLL)
target_compile_definitions("Aaru.Compression.Native" PUBLIC FLAC__NO_FILEIO)
# Disable fortify source when not-release or when cross-building with MingW for WoA
if(CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo OR "${CMAKE_C_PLATFORM_ID}" MATCHES "MinGW")