MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / rustHostTriple

Function rustHostTriple

scripts/codex-worktree-cache.mjs:311–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309}
310
311function rustHostTriple() {
312 const result = spawnSync("rustc", ["-vV"], { encoding: "utf8" });
313 if (result.status !== 0) {
314 return `${process.platform}-${process.arch}`;
315 }
316 const host = result.stdout
317 .split("\n")
318 .find((line) => line.startsWith("host: "))
319 ?.slice("host: ".length)
320 .trim();
321 return host || `${process.platform}-${process.arch}`;
322}
323
324function mtimeMs(path) {
325 try {

Callers 1

buildEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected