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 @taviso
Under WSL I'm using (in bash): if grep -qE "(Microsoft|WSL)" /proc/version &> /dev/null
1 reply 0 retweets 1 like -
Replying to @the_quark @taviso
So /proc/version includes "Microsoft" now, suspect it used to include WSL
1 reply 0 retweets 1 like
Replying to @the_quark
Thanks, I guess we came up with a similar solution, but I'll definitely add the WSL check as well just in case.
6:53 PM - 17 Feb 2019
0 replies
0 retweets
1 like
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.