From 014127e4c488053a8cfe37a58aff7616bb5ffc87 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 14 Aug 2019 01:15:21 +0200 Subject: [PATCH] Enable NativeFileStream under Linux by default It is supposed to work and libstdc++'s __gnu_cxx::stdio_filebuf is available anyways. Maybe sendfile() can be used at some point with this to speed up Tag Editor. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 320e558..41ffd90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,7 +121,7 @@ use_iconv(AUTO_LINKAGE REQUIRED) # configure use of native file buffer and its backend implementation if enabled set(USE_NATIVE_FILE_BUFFER_BY_DEFAULT OFF) -if (WIN32 OR ANDROID) +if (WIN32 OR ANDROID OR (UNIX AND NOT APPLE)) set(USE_NATIVE_FILE_BUFFER_BY_DEFAULT ON) endif () option(USE_NATIVE_FILE_BUFFER "enables use of native file buffer, affects ABI" ${USE_NATIVE_FILE_BUFFER_BY_DEFAULT})