From a4cd6916d4d3678f1f6663e20f4339115cf4bf45 Mon Sep 17 00:00:00 2001 From: manadher Date: Thu, 21 Nov 2024 16:21:12 -0800 Subject: [PATCH 1/2] For EDA 3310 --- src/Compiler/Compiler.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Compiler/Compiler.cpp b/src/Compiler/Compiler.cpp index 9b812fe5a..807458e28 100644 --- a/src/Compiler/Compiler.cpp +++ b/src/Compiler/Compiler.cpp @@ -940,8 +940,20 @@ bool Compiler::RegisterCommands(TclInterpreter* interp, bool batchMode) { return TCL_ERROR; } std::string opts; + bool read_init_registers = false; for (int i = 1; i < argc; i++) { - opts += std::string(argv[i]); + std::string opt = argv[i]; + if (opt == "-read_init_registers") { + read_init_registers = true; + } + if (read_init_registers) { + if (opt != "2" && opt != "1" && opt != "0") { + compiler->ErrorMessage("read_init_registers must be 0, 1, or 2"); + return TCL_ERROR; + } + read_init_registers = false; + } + opts += opt; if (i < (argc - 1)) { opts += " "; } From 95df6254d66b4711b5205a509ca3ed16105d15a7 Mon Sep 17 00:00:00 2001 From: manadher Date: Fri, 22 Nov 2024 00:37:54 +0000 Subject: [PATCH 2/2] Incremented patch version --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa14f45a6..39e2ebfb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ set(VERSION_MINOR 0) # Add the spdlog directory to the include path include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/spdlog/include ${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk ${CMAKE_CURRENT_SOURCE_DIR}/third_party/scope_guard) -set(VERSION_PATCH 438) +set(VERSION_PATCH 439) option(