Skip to content

Commit

Permalink
For EDA 3310 (#1718)
Browse files Browse the repository at this point in the history
* For EDA 3310

* Incremented patch version

---------

Co-authored-by: manadher <[email protected]>
  • Loading branch information
manadher and manadher authored Nov 22, 2024
1 parent c10906b commit 9683da9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
14 changes: 13 additions & 1 deletion src/Compiler/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 += " ";
}
Expand Down

0 comments on commit 9683da9

Please sign in to comment.