mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
Print a trace message if a build fails due to the platform being unknown
This commit is contained in:
parent
709cbe4e76
commit
c5b8fe3151
1 changed files with 4 additions and 1 deletions
|
@ -1623,10 +1623,13 @@ void DerivationGoal::startBuilder()
|
|||
startNest(nest, lvlInfo, format(repair ? "repairing path(s) %1%" : "building path(s) %1%") % showPaths(missingPaths));
|
||||
|
||||
/* Right platform? */
|
||||
if (!canBuildLocally(drv.platform))
|
||||
if (!canBuildLocally(drv.platform)) {
|
||||
if (settings.printBuildTrace)
|
||||
printMsg(lvlError, format("@ unsupported-platform %1% %2%") % drvPath % drv.platform);
|
||||
throw Error(
|
||||
format("a `%1%' is required to build `%3%', but I am a `%2%'")
|
||||
% drv.platform % settings.thisSystem % drvPath);
|
||||
}
|
||||
|
||||
/* Construct the environment passed to the builder. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue