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.
-
-
-
Replying to @Sarkies_Proxy
I meant the Linux on Windows stuff, it just reports Linux
2 replies 0 retweets 1 like -
Replying to @taviso @Sarkies_Proxy
Why would you specifically check for that? Your makefile should behave the same side it's still Linux, right?
1 reply 0 retweets 0 likes -
It doesn't behave entirely compatibly though. There's e.g. plenty syscalls that just return ENOSYS and things like that.
1 reply 0 retweets 0 likes -
Yeah, would have been nice, but some calls I use a lot are just not working well under Windows. I can provide replacements if I can detect WSL though.
2 replies 0 retweets 1 like -
Thanks, looks like they came up with a similar solution, I guess it will work! 
6:50 PM - 17 Feb 2019
0 replies
0 retweets
0 likes
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.