Skip to content

Commit 95fb302

Browse files
committed
add fallback stub for aarch64
1 parent 77262b6 commit 95fb302

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/os/exec_linux_aarch64.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2009 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
//go:build linux && !baremetal && !tinygo.wasm && aarch64
6+
7+
package os
8+
9+
import "errors"
10+
11+
// On the aarch64 architecture, the fork system call is not available.
12+
// Therefore, the fork function is implemented to return an error.
13+
func startProcess(name string, argv []string, attr *ProcAttr) (p *Process, err error) {
14+
return nil, errors.New("fork not yet supported on aarch64")
15+
}

src/os/osexec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build linux && !baremetal && !darwin && !tinygo.wasm && !arm64
1+
//go:build linux && !baremetal && !darwin && !tinygo.wasm && !aarch64
22

33
// arm64 does not have a fork syscall, so ignore it for now
44
// TODO: add support for arm64 with clone or use musl implementation

0 commit comments

Comments
 (0)