Unverified Commit 36cbf6e5 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

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

parents 85057cf6 fd2982de
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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";