fix building C

This commit is contained in:
2026-02-16 18:47:43 -06:00
parent a1ee7dd458
commit 17e35f023f
5 changed files with 72 additions and 17 deletions

View File

@@ -713,14 +713,14 @@ function make_c_symbol(pkg, file) {
return 'js_' + pkg_id + '_' + file_safe + '_use'
}
// Get the deterministic dylib path for a module in lib/<pkg>/<stem>.dylib
// Get the deterministic dylib path for a module in lib/<pkg_id>/<stem>.dylib
function get_dylib_path(pkg, stem) {
return global_shop_path + '/lib/' + safe_package_path(pkg) + '/' + stem + dylib_ext
return global_shop_path + '/lib/' + get_package_id(pkg) + '/' + stem + dylib_ext
}
// Get the deterministic mach path for a module in lib/<pkg>/<stem>.mach
// Get the deterministic mach path for a module in lib/<pkg_id>/<stem>.mach
function get_mach_path(pkg, stem) {
return global_shop_path + '/lib/' + safe_package_path(pkg) + '/' + stem + '.mach'
return global_shop_path + '/lib/' + get_package_id(pkg) + '/' + stem + '.mach'
}
// Open a per-module dylib and return the dlopen handle