Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/code: Add darwin/amd64 fallback env for package loading.
Previously, packages were only loaded with the default linux/amd64 environment. For most packages, that worked well. However, e.g., a macOS-only package would have all of its Go files excluded due to unmet build constraints. This change adds a secondary darwin/amd64 environment as a fallback to try if all Go files are excluded due to unmet build constraints. This was needed for the macOS-only dmitri.shuralyov.com/gpu/mtl package.
- Loading branch information
Showing
1 changed file
with
67 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters