From b9df02fe5eec2bdd8983834b3784db09787b4906 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Tue, 15 Nov 2022 14:54:22 -0500 Subject: Support Homebrew tcl --- lib/c.tcl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/c.tcl b/lib/c.tcl index ed31dc7d..291af868 100644 --- a/lib/c.tcl +++ b/lib/c.tcl @@ -93,7 +93,10 @@ namespace eval c { } variable cflags [ switch $tcl_platform(os) { - Darwin { list -I$::tcl_library/../../Headers $::tcl_library/../../Tcl } + Darwin { expr { [file exists "$::tcl_library/../../Tcl"] ? + [list -I$::tcl_library/../../Headers $::tcl_library/../../Tcl] : + [list -I$::tcl_library/../../include $::tcl_library/../libtcl8.6.dylib] + } } Linux { list -I/usr/include/tcl8.6 -ltcl8.6 } } ] ::proc compile {} { -- cgit v1.2.3