|
33 | 33 | #include <tclExtend.h> |
34 | 34 | #endif |
35 | 35 |
|
| 36 | +#include "cut/abc_init.h" |
36 | 37 | #include "gui/gui.h" |
37 | 38 | #include "ord/Design.h" |
38 | 39 | #include "ord/InitOpenRoad.hh" |
@@ -89,7 +90,6 @@ static const char* log_filename = nullptr; |
89 | 90 | static const char* metrics_filename = nullptr; |
90 | 91 | static bool no_settings = false; |
91 | 92 | static bool minimize = false; |
92 | | -static bool abc_initialized = false; |
93 | 93 |
|
94 | 94 | static const char* init_filename = ".openroad"; |
95 | 95 |
|
@@ -169,12 +169,6 @@ static void initPython() |
169 | 169 | } |
170 | 170 | #endif |
171 | 171 |
|
172 | | -namespace abc { |
173 | | -// Forward declare instead of including to avoid warnings from ABC |
174 | | -void Abc_Start(); |
175 | | -void Abc_Stop(); |
176 | | -} // namespace abc |
177 | | - |
178 | 172 | static volatile sig_atomic_t fatal_error_in_progress = 0; |
179 | 173 |
|
180 | 174 | // When we enter through main() we have a single tech and design. |
@@ -310,9 +304,8 @@ int main(int argc, char* argv[]) |
310 | 304 | // Tcl_Main never returns. |
311 | 305 | Tcl_Main(1, argv, ord::tclAppInit); |
312 | 306 |
|
313 | | - if (abc_initialized) { |
314 | | - abc::Abc_Stop(); |
315 | | - } |
| 307 | + cut::abcStop(); |
| 308 | + |
316 | 309 | return 0; |
317 | 310 | } |
318 | 311 |
|
@@ -528,14 +521,6 @@ int ord::tclInit(Tcl_Interp* interp) |
528 | 521 | return tclAppInit(cmd_argc, cmd_argv, init_filename, interp); |
529 | 522 | } |
530 | 523 |
|
531 | | -void ord::abcInit() |
532 | | -{ |
533 | | - if (!abc_initialized) { |
534 | | - abc::Abc_Start(); |
535 | | - abc_initialized = true; |
536 | | - } |
537 | | -} |
538 | | - |
539 | 524 | static void showUsage(const char* prog, const char* init_filename) |
540 | 525 | { |
541 | 526 | printf("Usage: %s [-help] [-version] [-no_init] [-no_splash] [-exit] ", prog); |
|
0 commit comments