fix: ia32 target normalization

This commit is contained in:
calebboyd
2017-09-27 00:55:06 -05:00
parent 5c9cf3580c
commit 4390568654
6 changed files with 14 additions and 11 deletions
+2 -1
View File
@@ -63,7 +63,8 @@ export function targetsEqual(a: NexeTarget, b: NexeTarget) {
}
export function getTarget(target: string | Partial<NexeTarget> = ''): NexeTarget {
let arch = process.arch as NodeArch,
const currentArch = process.arch
let arch = currentArch in prettyArch ? prettyArch[process.arch] : process.arch as NodeArch,
platform = prettyPlatform[process.platform],
version = process.version.slice(1)