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.
This commit is contained in:
Ayke van Laethem
2021-09-21 16:21:23 +02:00
committed by Ron Evans
parent e02727679f
commit 04e8f44370
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// +build !linux
// +build !linux baremetal
package os
+1 -1
View File
@@ -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