Build sphinxsearch using the old c++98 standard (#320492)

This commit is contained in:
Philip Taron
2024-09-05 09:03:00 -07:00
committed by GitHub
+1 -7
View File
@@ -31,13 +31,7 @@ stdenv.mkDerivation rec {
expat
];
CXXFLAGS = lib.concatStringsSep " " (lib.optionals stdenv.isDarwin [
# see upstream bug: http://sphinxsearch.com/bugs/view.php?id=2578
# workaround for "error: invalid suffix on literal
"-Wno-reserved-user-defined-literal"
# workaround for "error: non-constant-expression cannot be narrowed from type 'long' to 'int'"
"-Wno-c++11-narrowing"
]);
CXXFLAGS = "-std=c++98";
meta = {
description = "Open source full text search server";