8226521: Detect WSL2 as WSL in configure

Reviewed-by: erikj
This commit is contained in:
Andrew Luo 2019-06-20 09:35:41 -07:00 committed by Erik Joelsson
parent cd130d9b39
commit 4c4bd162c5

View File

@ -63,7 +63,7 @@ fi
# Test and fix wsl
echo $OUT | grep x86_64-unknown-linux-gnu > /dev/null 2> /dev/null
if test $? = 0; then
uname -r | grep Microsoft > /dev/null 2> /dev/null
uname -r | grep -i microsoft > /dev/null 2> /dev/null
if test $? = 0; then
OUT="x86_64-pc-wsl"
fi