Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,7 @@ const platforms = [
{ os: "darwin", arch: "x64", vsix: true, cert: "MacDeveloperHarden" },
{ os: "darwin", arch: "arm64", vsix: true, cert: "MacDeveloperHarden" },
{ os: "aix", arch: "ppc64" },
{ os: "android", arch: "arm64" },
{ os: "freebsd", arch: "arm64" },
{ os: "freebsd", arch: "x64" },
{ os: "linux", arch: "loong64" },
Expand All @@ -1541,7 +1542,6 @@ const ignoredGoTargets = new Map([
["android/386", "Android is not a Node runtime target TypeScript supports"],
["android/amd64", "Android is not a Node runtime target TypeScript supports"],
["android/arm", "Android is not a Node runtime target TypeScript supports"],
["android/arm64", "Android is not a Node runtime target TypeScript supports"],
["freebsd/386", "FreeBSD is experimental in Node and limited here to mainstream 64-bit x64/arm64"],
["freebsd/arm", "FreeBSD is experimental in Node and limited here to mainstream 64-bit x64/arm64"],
["linux/386", "ia32 means 32-bit x86, which TypeScript does not support for native packages"],
Expand Down
4 changes: 4 additions & 0 deletions internal/fswatch/fanotify_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/binary"
"errors"
"fmt"
"runtime"
"sync/atomic"
"unsafe"

Expand Down Expand Up @@ -187,6 +188,9 @@ func init() {
// fanotifyAvailable probes whether fanotify_init succeeds with the flags
// this backend needs.
func fanotifyAvailable() bool {
if runtime.GOOS == "android" {
return false
}
Comment thread
jakebailey marked this conversation as resolved.
fd, err := unix.FanotifyInit(fanotifyInitFlags, unix.O_RDONLY|unix.O_CLOEXEC)
if err != nil {
return false
Expand Down