os: don't try to read executable path on baremetal

Baremetal systems usually pretend to be GOOS=linux, so an extra build
tag is needed here.
Этот коммит содержится в:
Ayke van Laethem 2021-09-21 16:21:23 +02:00 коммит произвёл Ron Evans
родитель e02727679f
коммит 04e8f44370
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1,4 +1,4 @@
// +build !linux
// +build !linux baremetal
package os

Просмотреть файл

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build linux
// +build linux,!baremetal
package os