Use ServeProto::Serialise<ServeProto::BuildOptions>
This commit is contained in:
parent
b56d2383c1
commit
20f5a2120c
@ -293,14 +293,7 @@ static BuildResult performBuild(
|
|||||||
{
|
{
|
||||||
conn.to << ServeProto::Command::BuildDerivation << localStore.printStorePath(drvPath);
|
conn.to << ServeProto::Command::BuildDerivation << localStore.printStorePath(drvPath);
|
||||||
writeDerivation(conn.to, localStore, drv);
|
writeDerivation(conn.to, localStore, drv);
|
||||||
conn.to << options.maxSilentTime << options.buildTimeout;
|
ServeProto::write(localStore, conn, options);
|
||||||
if (GET_PROTOCOL_MINOR(conn.remoteVersion) >= 2)
|
|
||||||
conn.to << options.maxLogSize;
|
|
||||||
if (GET_PROTOCOL_MINOR(conn.remoteVersion) >= 3) {
|
|
||||||
conn.to
|
|
||||||
<< options.nrRepeats
|
|
||||||
<< options.enforceDeterminism;
|
|
||||||
}
|
|
||||||
conn.to.flush();
|
conn.to.flush();
|
||||||
|
|
||||||
BuildResult result;
|
BuildResult result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user