Skip to content

Commit ae7087c

Browse files
authored
Merge pull request #6567 from The-OpenROAD-Project-staging/no-tclreadline
Fix compile error when tcl readline is not found
2 parents 44e3614 + 063cd35 commit ae7087c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Main.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ static int tclReadlineInit(Tcl_Interp* interp)
353353
}
354354
#endif
355355

356+
#ifdef ENABLE_READLINE
356357
namespace {
357358
// A stopgap fallback from the hardcoded TCLRL_LIBRARY path for OpenROAD,
358359
// not essential for OpenSTA
@@ -399,6 +400,7 @@ std::string findPathToTclreadlineInit(Tcl_Interp* interp)
399400
return Tcl_GetStringResult(interp);
400401
}
401402
} // namespace
403+
#endif
402404

403405
// Tcl init executed inside Tcl_Main.
404406
static int tclAppInit(int& argc,

0 commit comments

Comments
 (0)