MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / getMsvcArchFromRustTarget

Function getMsvcArchFromRustTarget

packages/native/scripts/build-native.mjs:95–101  ·  view source on GitHub ↗
(hostTargetTriple)

Source from the content-addressed store, hash-verified

93}
94
95function getMsvcArchFromRustTarget(hostTargetTriple) {
96 if (typeof hostTargetTriple !== "string") return "x64";
97 if (hostTargetTriple.startsWith("x86_64-")) return "x64";
98 if (hostTargetTriple.startsWith("i686-")) return "x86";
99 if (hostTargetTriple.startsWith("aarch64-")) return "arm64";
100 return "x64";
101}
102
103function getMsvcHostArch() {
104 if (process.arch === "x64") return "x64";

Callers 2

withWindowsSdkEnvFunction · 0.85
withMsvcDevEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected