Backport of #53316
See that PR for details.
Notes: Fixed fs.constants.O_DIRECTORY, O_NOFOLLOW and O_DIRECT holding x86 values on Linux arm64 and armv7l, which made opening a directory fail with EINVAL, and made require('trace_events') behave the same on cross-compiled builds as on native ones.
Originally posted by Samuel Attard (@MarshallOfSound) in electron/electron#53320
Backport of #53316
See that PR for details.
Notes: Fixed
fs.constants.O_DIRECTORY,O_NOFOLLOWandO_DIRECTholding x86 values on Linux arm64 and armv7l, which made opening a directory fail withEINVAL, and maderequire('trace_events')behave the same on cross-compiled builds as on native ones.Originally posted by Samuel Attard (@MarshallOfSound) in electron/electron#53320