mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
stdenvAdapters.useOldCXXAbi: add new adapter
This commit is contained in:
parent
1186bffb7f
commit
9134f9358a
@ -241,4 +241,11 @@ rec {
|
||||
then pkgs.allStdenvs.stdenvDarwinNaked
|
||||
else pkgs.stdenv;
|
||||
};
|
||||
|
||||
/* Modify a stdenv so a build uses pre-C++11 ABI by default. */
|
||||
useOldCXXAbi = stdenv: stdenv //
|
||||
{ mkDerivation = args: stdenv.mkDerivation (args // {
|
||||
NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -D_GLIBCXX_USE_CXX11_ABI=0";
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user