yarnpkg/yarn

Support --arch and --target_arch to build modules for other architectures

Open

#2,221 创建于 2016年12月11日

在 GitHub 查看
 (16 评论) (81 反应) (0 负责人)JavaScript (41,514 star) (2,731 fork)batch import
cat-featuregood first issuehelp wantedtriaged

描述

Do you want to request a feature or report a bug? Feature

What is the current behavior? Not able to pass parameters so that yarn can be told to build packages for a specific architecture. Right now, in order to build for a specific target other than the architecture of the machine yarn is executed on, one has to run (example given to compile for arm):

yarn --production --ignore-scripts
npm rebuild --arch=arm --target_arch=arm

What is the expected behavior? Ability to pass --arch and --target_arch that yarn would then pass on to node-gyp, so that the above example would turn into:

yarn --production --arch=arm --target_arch=arm

Please mention your node.js, yarn and operating system version. node v6.9.1 yarn 0.17.10 Ubuntu 14.04

贡献者指南

Support --arch and --target_arch to build modules for other architectures · yarnpkg/yarn#2221 | Good First Issue