From 0dbfa4662f74b89c5f3f8c4fa5ebbef6a89d532b Mon Sep 17 00:00:00 2001 From: ZipCPU Date: Thu, 7 Jun 2018 07:52:05 -0400 Subject: [PATCH] Preliminary placer changes to main --- CMakeLists.txt | 1 + ice40/main.cc | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfc33e90..02e67e87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,7 @@ include_directories(common/ gui/ frontend/json ${Boost_INCLUDE_DIRS} ${PYTHON_IN aux_source_directory(common/ COMMON_SRC_FILES) aux_source_directory(frontend/json/ JSON_PARSER_FILES) set(COMMON_FILES ${COMMON_SRC_FILES} ${JSON_PARSER_FILES}) +set(CMAKE_BUILD_TYPE Debug) foreach (family ${FAMILIES}) string(TOUPPER ${family} ufamily) diff --git a/ice40/main.cc b/ice40/main.cc index d47076fd..b723c1fd 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -25,6 +25,7 @@ #include "mainwindow.h" #include "pybindings.h" #include "version.h" +#include "log.h" void svg_dump_el(const GraphicElement &el) { @@ -52,6 +53,8 @@ int main(int argc, char *argv[]) int rc = 0; std::string str; + log_files.push_back(stdout); + po::options_description options("Allowed options"); options.add_options()("help,h", "show help"); options.add_options()("test", "just a check"); @@ -247,6 +250,10 @@ int main(int argc, char *argv[]) execute_python_file(filename.c_str()); } + extern void place_design(Design *d); + place_design(&design); + + if (vm.count("gui")) { QApplication a(argc, argv); MainWindow w;