buildCrystalPackage: use --no-debug

it was causing problems with the installCheckPhase due to it generating
.dwarf files
This commit is contained in:
Artturin 2021-09-10 23:24:51 +03:00
parent 9bd941c5d2
commit afb755e706

View File

@ -10,7 +10,7 @@
, format ? "make" , format ? "make"
, installManPages ? true , installManPages ? true
# Specify binaries to build in the form { foo.src = "src/foo.cr"; } # Specify binaries to build in the form { foo.src = "src/foo.cr"; }
# The default `crystal build` options can be overridden with { foo.options = [ "--no-debug" ]; } # The default `crystal build` options can be overridden with { foo.options = [ "--optionname" ]; }
, crystalBinaries ? { } , crystalBinaries ? { }
, ... , ...
}@args: }@args:
@ -32,8 +32,7 @@ let
}) })
(import shardsFile)); (import shardsFile));
# we previously had --no-debug here but that is not recommended by upstream defaultOptions = [ "--release" "--progress" "--verbose" "--no-debug" ];
defaultOptions = [ "--release" "--progress" "--verbose" ];
buildDirectly = shardsFile == null || crystalBinaries != { }; buildDirectly = shardsFile == null || crystalBinaries != { };