Quantcast
Channel: User Norbert - Stack Overflow
Viewing all articles
Browse latest Browse all 42

Answer by Norbert for Makefile for GoLang Cross Compilation

$
0
0

Not an idiomatic way. Shorter might be possible

go tool dist list

Gets you all builds.

By now just looking for the first 2 lowercase characters of the OS in the list against the ${os}, look for the arch as indicated, and at least it becomes responsive to the changes in golang capabilities.

As for Darwin 386: That is probably your only exception (Don't know where you would hit that one though)


Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>