Skip to content

Commit

Permalink
Fix [4527e21fcd]. ttrace load fails in second thread
Browse files Browse the repository at this point in the history
  • Loading branch information
apnadkarni committed Dec 7, 2024
1 parent f12cc02 commit 7c5928c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ THREAD_VFS_ROOT = libthread.vfs
THREAD_VFS_PATH = ${THREAD_VFS_ROOT}/thread_library

ZIPFS_BUILD = @ZIPFS_BUILD@
NATIVE_ZIP = @ZIP_PROG@
ZIP_PROG_OPTIONS = @ZIP_PROG_OPTIONS@
ZIP_PROG_VFSSEARCH = @ZIP_PROG_VFSSEARCH@
SHARED_BUILD = @SHARED_BUILD@
INSTALL_LIBRARIES = @INSTALL_LIBRARIES@
INSTALL_MSGS = @INSTALL_MSGS@
Expand Down
3 changes: 2 additions & 1 deletion pkgIndex.tcl.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ package ifneeded ttrace @PACKAGE_VERSION@ [list ::apply {{dir} {
source [file join $dir .. lib ttrace.tcl]
} elseif {[file readable [file join $dir ttrace.tcl]]} {
source [file join $dir ttrace.tcl]
} elseif {![catch {zipfs mount [file join $dir @PKG_LIB_FILE@] //zipfs:/lib/thread}]} {
} elseif {[file exists //zipfs:/lib/thread/ttrace.tcl] ||
![catch {zipfs mount [file join $dir @PKG_LIB_FILE@] //zipfs:/lib/thread}]} {
source //zipfs:/lib/thread/ttrace.tcl
}
if {[namespace which ::ttrace::update] ne ""} {
Expand Down

0 comments on commit 7c5928c

Please sign in to comment.