ifeq ($(OS),Windows_NT) Maybe?
-
-
-
I meant the Linux on Windows stuff, it just reports Linux

- 5 more replies
New conversation -
-
-
Double checking, you mean wsl make and not nmake?
-
Right, WSL. I'm finding some system calls super slow and want to avoid them, so want something like ifeq WSL, CPPFLAGS += -DAVOID_SLOW_CALLS or whatever.
- 3 more replies
New conversation -
-
-
Under WSL I'm using (in bash): if grep -qE "(Microsoft|WSL)" /proc/version &> /dev/null
-
So /proc/version includes "Microsoft" now, suspect it used to include WSL
- 1 more reply
New conversation -
-
-
That matches both WSL, Ubuntu on Hyper-V and Ubuntu on Azure (IIRC)
-
s/Ubuntu/Linux/g
End of conversation
New conversation -
-
-
"ifdef SystemRoot" but I've also seen "ifdef SYSTEMROOT" mentioned, maybe the case depends on the kind of shell that will run make
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Check for Microsoft|WSL in /proc/version
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.