From f4cd7abdd38aa3d14dcce98cb92dc1054fe97503 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Mar 2021 12:58:34 +0200 Subject: Add support for compressing/decompressing fdstreams with LZ4 Importing LZ4 code from version 1.9.3. --- libbutl/buildfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'libbutl/buildfile') diff --git a/libbutl/buildfile b/libbutl/buildfile index 6526900..5398f71 100644 --- a/libbutl/buildfile +++ b/libbutl/buildfile @@ -27,9 +27,8 @@ windows = ($tclass == 'windows') # lib{butl}: {hxx ixx cxx}{win32-utility}: include = $windows -# Our C-files are included into sha256.cxx (sha256c.c) and timestamp.cxx -# (strptime.c timelocal.h timelocal.c), so treat them as files exclude from -# the compilation. +# Our C-files are always included into C++-files that wrap the corresponding +# API so treat them as files exclude from the compilation. # lib{butl}: file{*.c *.h} @@ -40,6 +39,12 @@ lib{butl}: cxx{uuid-macos}: include = ($tclass == 'macos') lib{butl}: cxx{uuid-windows}: include = $windows lib{butl}: cxx{uuid-freebsd}: include = ($tsys == 'freebsd' || $tsys == 'netbsd') +# GCC prior to version 6 has flaky `#pragma GCC diagnostic` so we have to +# disable certain warnings outright. +# +if ($cxx.id == 'gcc' && $cxx.version.major < 6) + cc.coptions += -Wno-unused-function + # Additional system libraries. # switch $tclass, $tsys -- cgit v1.1