Skip to content

Commit

Permalink
Build sphinxsearch using the old c++98 standard (#320492)
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron authored Sep 5, 2024
2 parents 85057cf + fd2982d commit 36cbf6e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkgs/servers/search/sphinxsearch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 36cbf6e

Please sign in to comment.