From 9718c51ef4d33de7159345934bbf3d8dc3ab96f8 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 6 Jan 2024 16:29:02 +0000 Subject: [PATCH] Survey: Add clang and zstd --- src/survey.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/survey.cpp b/src/survey.cpp index a3fa39c0e8..ad8525266b 100644 --- a/src/survey.cpp +++ b/src/survey.cpp @@ -60,6 +60,9 @@ #ifdef WITH_LIBLZMA # include #endif +#ifdef WITH_ZSTD +#include +#endif #ifdef WITH_LZO #include #endif @@ -134,6 +137,9 @@ void SurveyCompiler(nlohmann::json &survey) #if defined(_MSC_VER) survey["name"] = "MSVC"; survey["version"] = _MSC_VER; +#elif defined(__clang__) + survey["name"] = "clang"; + survey["version"] = __clang_version__; #elif defined(__ICC) && defined(__GNUC__) survey["name"] = "ICC"; survey["version"] = __ICC; @@ -369,6 +375,10 @@ void SurveyLibraries(nlohmann::json &survey) survey["lzma"] = lzma_version_string(); #endif +#ifdef WITH_ZSTD + survey["zstd"] = ZSTD_versionString(); +#endif + #ifdef WITH_LZO survey["lzo"] = lzo_version_string(); #endif