Commit 58587219 authored by Cristian Maglie's avatar Cristian Maglie Committed by Cristian Maglie

Sketch preprocessing should just output preprocessed sketch

There is nothing left to do after preprocessing.
parent 8507cbe4
......@@ -161,7 +161,10 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W
if req.GetShowProperties() {
err = builder.RunParseHardwareAndDumpBuildProperties(builderCtx)
} else if req.GetPreprocess() {
err = builder.RunPreprocess(builderCtx)
if err = builder.RunPreprocess(builderCtx); err != nil {
return nil, fmt.Errorf("preprocessing sketch: %s", err)
}
return &rpc.CompileResp{}, nil
} else {
err = builder.RunBuilder(builderCtx)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment