What is the best way to check for Windows in a Makefile? I have ifeq ($(findstring Microsoft,$(shell uname -r)), Microsoft), but it doesn't feel very robust.
-
-
Why would you specifically check for that? Your makefile should behave the same side it's still Linux, right?
-
It doesn't behave entirely compatibly though. There's e.g. plenty syscalls that just return ENOSYS and things like that.
- 3 more replies
New conversation -
-
-
You can run `uname -r` which should return "<the WSL kernel version being emulated>-<OSBUILD>-Microsoft" Currently, it's "4.4.0-18340-Microsoft"
- 1 more reply
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
