I'm writing a tool that runs on Linux, but my development platform of choice at the moment is OSX. Normally this isn't a problem as the two are close enough that most things just work. However, this tool needs to make a Linux specific syscall that is gated on operating system. So if I open it in an IDE on OSX, I get the expected "not found" error - but it works fine on Linux as you'd expected.
I'm currently using Emacs with the Rust LSP plugin (works really well). Is it possible to configure it so that it assumes a different operating system than the one its running on? I've cross compiled for Linux just fine, but I'm not sure where to start with LSP