aboutsummaryrefslogtreecommitdiff
path: root/libbutl/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-09 12:58:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-03-12 13:00:12 +0200
commitf4cd7abdd38aa3d14dcce98cb92dc1054fe97503 (patch)
tree4839d7b862ca6ded5191991f610dd6cf17ac1fde /libbutl/buildfile
parentff9995f1e638ada66a68a54475adea7c9191916b (diff)
Add support for compressing/decompressing fdstreams with LZ4
Importing LZ4 code from version 1.9.3.
Diffstat (limited to 'libbutl/buildfile')
-rw-r--r--libbutl/buildfile11
1 files changed, 8 insertions, 3 deletions
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