mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Merge pull request #13068 from DeterminateSystems/fix-warning
DerivationBuilder: Fix compiler warning
This commit is contained in:
commit
714662e675
1 changed files with 1 additions and 1 deletions
|
@ -1127,7 +1127,7 @@ void DerivationBuilderImpl::startBuilder()
|
|||
if (needsHashRewrite() && pathExists(homeDir))
|
||||
throw Error("home directory '%1%' exists; please remove it to assure purity of builds without sandboxing", homeDir);
|
||||
|
||||
if (useChroot && settings.preBuildHook != "" && dynamic_cast<const Derivation *>(&drv)) {
|
||||
if (useChroot && settings.preBuildHook != "") {
|
||||
printMsg(lvlChatty, "executing pre-build hook '%1%'", settings.preBuildHook);
|
||||
auto args = useChroot ? Strings({store.printStorePath(drvPath), chrootRootDir}) :
|
||||
Strings({ store.printStorePath(drvPath) });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue