summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2022-11-15 19:54:22 +0000
committerOmar Rizwan <omar@omar.website>2022-11-15 19:54:22 +0000
commitb9df02fe5eec2bdd8983834b3784db09787b4906 (patch)
treec78ed7d8eb25b733f4c241967d8c92f0500bd169 /lib
parentMac tclsh8.6 instr (diff)
downloadfolk-b9df02fe5eec2bdd8983834b3784db09787b4906.tar.gz
folk-b9df02fe5eec2bdd8983834b3784db09787b4906.zip
Support Homebrew tcl
Diffstat (limited to 'lib')
-rw-r--r--lib/c.tcl5
1 files changed, 4 insertions, 1 deletions
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 {} {