You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
Go lets you have compile flags or suffixes on files that gate on what platform they are built on. You can see a description here.
You can force the go tool chain to compile specific OS/Architecture using environment variables: GOOS=windows go build foo_windows.go would compile this even if you are on linux or a mac. It would be nice to incorporate this as it means when you are developing on a project that targets many operating systems, syntactic is disabled on certain files essentially. Would be cool for Neomake as well
The text was updated successfully, but these errors were encountered:
If go were an usual checker, you would just set exe and fname and everything would be fine. Sadly, go makes a weird checker, at best. For the environment variable, exporting it from the relevant shell's profile should work (at least on UNIX-like OSes):
GOOS=windows
export GOOS
For the modified filename you could try something like this:
Go lets you have compile flags or suffixes on files that gate on what platform they are built on. You can see a description here.
You can force the go tool chain to compile specific OS/Architecture using environment variables:
GOOS=windows go build foo_windows.go
would compile this even if you are on linux or a mac. It would be nice to incorporate this as it means when you are developing on a project that targets many operating systems, syntactic is disabled on certain files essentially. Would be cool for Neomake as wellThe text was updated successfully, but these errors were encountered: