Skip to content

Commit 4e94776

Browse files
committed
WIP
Signed-off-by: Andrew Stein <steinlink@gmail.com>
1 parent 5b66a61 commit 4e94776

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

tools/scripts/install_emsdk.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ const emscripten = pkg.emscripten;
2525
dotenv.config({ path: "./.perspectiverc", quiet: true });
2626

2727
function base() {
28-
return path.resolve(getWorkspaceRoot(), ".emsdk");
28+
return path.resolve(getWorkspaceRoot(), ".emsdk").replace(/\\/g, "\\");
2929
}
3030

31+
console.error("Absolute path", base());
32+
3133
function emsdk_checkout() {
3234
$.sync`git clone https://github.com/emscripten-core/emsdk.git ${base()}`;
3335
}

tools/scripts/workspace.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,15 @@ const memoize = (f) => {
3131
export function getWorkspaceRoot() {
3232
return workspaceRoot;
3333
}
34+
3435
export function getRustTargetDir() {
3536
return rustTargetDir;
3637
}
38+
3739
export function getRustWheelsDir() {
3840
return rustWheelsDir;
3941
}
42+
4043
export function getEmscriptenWheelPath() {
4144
const pspVersion = getWorkspacePackageJson().version.replace("-", ".");
4245
const wheeljunk = "cp311-abi3-emscripten_4_0_9_wasm32";
@@ -45,6 +48,7 @@ export function getEmscriptenWheelPath() {
4548
`perspective_python-${pspVersion}-${wheeljunk}.whl`,
4649
);
4750
}
51+
4852
/**
4953
* @returns memoized, deserialized contents of workspace package.json
5054
*/

0 commit comments

Comments
 (0)