-
-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross compiling filegroups #1104
Comments
cross compiling was never done through output groups, only race/pure was done that way. |
The specific case I'm trying to deal with is trying to package up a project that has binary is compile for multiple operating system to distribute on NPM. Right now I have a shell script that does a bunch of gross stuff compiling it twice and making temp directories. I would like to move it over to bring all in build files. Do you have any theories on how I could do that? |
Persuade the Bazel team to implement toolchain transitions so we can have rules that state what toolchain they compile with.... |
This adds goos and goarch attributes to a go_binary If specified they force the binary to cross compile to the specified architecture. It also adds a test that uses this to cross compile and verify the binary was correctly cross compiled. This also required multiple rules for the same binary in different modes, which meant we needed control over the binary file name (so not using the rule name) Fixes bazel-contrib#1104 Fixes bazel-contrib#1030
This adds goos and goarch attributes to a go_binary If specified they force the binary to cross compile to the specified architecture. It also adds a test that uses this to cross compile and verify the binary was correctly cross compiled. This also required multiple rules for the same binary in different modes, which meant we needed control over the binary file name (so not using the rule name) Fixes bazel-contrib#1104 Fixes bazel-contrib#1030
This adds goos and goarch attributes to a go_binary If specified they force the binary to cross compile to the specified architecture. It also adds a test that uses this to cross compile and verify the binary was correctly cross compiled. This also required multiple rules for the same binary in different modes, which meant we needed control over the binary file name (so not using the rule name) Fixes #1104 Fixes #1030
Is it possible to use
filegroup
soutput_group
attribute to get a cross-compiled binary now that the preferred way of cross-compiling is not done through output groups?The text was updated successfully, but these errors were encountered: