Added detection of Microsoft WSL/WSL2 Linux flavors.

Added tracing of the platform detection.
This commit is contained in:
Vojtech Bubnik
2021-03-15 09:55:57 +01:00
parent 2c76c42baa
commit 33b63b35a2
2 changed files with 25 additions and 2 deletions
+4
View File
@@ -23,6 +23,10 @@ enum class PlatformFlavor
// For Platform::Linux
GenericLinux,
LinuxOnChromium,
// Microsoft's Windows on Linux (Linux kernel simulated on NTFS kernel)
WSL,
// Microsoft's Windows on Linux, version 2 (virtual machine)
WSL2,
// For Platform::BSDUnix
OpenBSD,
};