xcompilation warnings must be in pkg. here anything may be downloaded

This commit is contained in:
igorklopov 2016-08-15 14:41:04 +03:00
parent a3892fa67b
commit 649b0af51d

View File

@ -13,15 +13,6 @@ export async function need ({
nodeRange = 'latest', platform = hostPlatform,
arch = hostArch, dontTakeCache, dontDownload, dontBuild
} = {}) {
// TODO CROSSCOMPILATION
if (platform !== hostPlatform) {
throw new Error(`Currently only ${hostPlatform} is supported`);
}
if (arch !== hostArch) {
throw new Error(`Currently only ${hostArch} is supported`);
}
nodeRange = abiToNodeRange(nodeRange); // m48 -> '6'
nodeRange = nodeRange.toString(); // 6 -> '6'
platform = toFancyPlatform(platform); // win32 -> win