chore: Nix: do not set extra cmake flags like fsanitize for stage 0
This commit is contained in:
parent
752af03899
commit
eedce252ff
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ rec {
|
|||
'';
|
||||
} // args // {
|
||||
src = args.realSrc or (lib.sourceByRegex args.src [ "[a-z].*" "CMakeLists\.txt" ]);
|
||||
cmakeFlags = (args.cmakeFlags or [ "-DSTAGE=1" "-DPREV_STAGE=./faux-prev-stage" "-DUSE_GITHASH=OFF" ]) ++ extraCMakeFlags ++ lib.optional (args.debug or debug) [ "-DCMAKE_BUILD_TYPE=Debug" ];
|
||||
cmakeFlags = (args.cmakeFlags or [ "-DSTAGE=1" "-DPREV_STAGE=./faux-prev-stage" "-DUSE_GITHASH=OFF" ]) ++ (args.extraCMakeFlags or extraCMakeFlags) ++ lib.optional (args.debug or debug) [ "-DCMAKE_BUILD_TYPE=Debug" ];
|
||||
});
|
||||
lean-bin-tools-unwrapped = buildCMake {
|
||||
name = "lean-bin-tools";
|
||||
|
|
@ -56,6 +56,7 @@ rec {
|
|||
src = ../stage0/src;
|
||||
debug = stage0debug;
|
||||
cmakeFlags = [ "-DSTAGE=0" ];
|
||||
extraCMakeFlags = [];
|
||||
preConfigure = ''
|
||||
ln -s ${../stage0/stdlib} ../stdlib
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue