Skip to content

Commit 063cd35

Browse files
committed
Fix compile error when tcl readline is not found
Fixes #6488 Signed-off-by: Matt Liberty <[email protected]>
1 parent 19e09ee commit 063cd35

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
@@ -354,6 +354,7 @@ static int tclReadlineInit(Tcl_Interp* interp)
354354
}
355355
#endif
356356

357+
#ifdef ENABLE_READLINE
357358
namespace {
358359
// A stopgap fallback from the hardcoded TCLRL_LIBRARY path for OpenROAD,
359360
// not essential for OpenSTA
@@ -400,6 +401,7 @@ std::string findPathToTclreadlineInit(Tcl_Interp* interp)
400401
return Tcl_GetStringResult(interp);
401402
}
402403
} // namespace
404+
#endif
403405

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

0 commit comments

Comments
 (0)