have 'select -count' save the count to scratchpad entry 'select.count'
authorN. Engelhardt <nak@yosyshq.com>
Wed, 1 Jun 2022 12:38:28 +0000 (14:38 +0200)
committerN. Engelhardt <nak@yosyshq.com>
Wed, 1 Jun 2022 12:39:33 +0000 (14:39 +0200)
passes/cmds/select.cc

index d609c8d0fef3accf7a6cc4814bdd50cc4341258f..b112b145c6a5d87d4f6754392bdadb478e6a597b 100644 (file)
@@ -1456,7 +1456,10 @@ struct SelectPass : public Pass {
                                }
                        }
                        if (count_mode)
+                       {
+                               design->scratchpad_set_int("select.count", total_count);
                                log("%d objects.\n", total_count);
+                       }
                        if (f != nullptr)
                                fclose(f);
                #undef LOG_OBJECT