mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
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:
committed by
Ron Evans
parent
e02727679f
commit
04e8f44370
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user