Commit 53875c54 authored by Antti Keränen's avatar Antti Keränen Committed by Anderson Torres
Browse files

cbqn: make REPLXX flag explicit

Makefile target o3n-singeli enables REPLXX by default, we want to adhere
the enableReplxx variable.
parent afea6a0e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -50,12 +50,12 @@ stdenv.mkDerivation rec {

  makeFlags = [
    "CC=${stdenv.cc.targetPrefix}cc"
  ]
  ++ lib.optional enableReplxx "REPLXX=1";
  ];

  buildFlags = [
    # interpreter binary
    (lib.flatten (if enableSingeli then ["o3n-singeli" "f='-mavx2'"] else ["o3"]))
    "REPLXX=${if enableReplxx then "1" else "0"}"
  ] ++ lib.optionals enableLibcbqn [
    # embeddable interpreter as a shared lib
    "shared-o3"