diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-05 14:31:57 -0500 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-05 14:31:57 -0500 |
commit | c5b8fe315162440c1d808bc0a684a412d78bfa76 (patch) | |
tree | aa97e19385fe73ec12196181002134aed70bfda6 | |
parent | 709cbe4e76e7b0f1b8abddbeb7714e194f6f8a02 (diff) |
Print a trace message if a build fails due to the platform being unknown
-rw-r--r-- | src/libstore/build.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 63e34d256..0a8bdbaf5 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -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. */ |