mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
Fix for builds of tinygo using an Android host
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ func ReadBuildID() ([]byte, error) {
|
|||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux", "freebsd":
|
case "linux", "freebsd", "android":
|
||||||
// Read the GNU build id section. (Not sure about FreeBSD though...)
|
// Read the GNU build id section. (Not sure about FreeBSD though...)
|
||||||
file, err := elf.NewFile(f)
|
file, err := elf.NewFile(f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user