Fix for builds of tinygo using an Android host
Этот коммит содержится в:
родитель
df52b500bf
коммит
f34a0d44ca
1 изменённых файлов: 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 {
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче