actually fix wsl2

This commit is contained in:
red031000 2025-11-14 22:37:28 +00:00
parent bac9a29097
commit 7c672a8340
No known key found for this signature in database
GPG Key ID: D27E50C050AE0CE1
7 changed files with 60 additions and 15 deletions

View File

@ -59,9 +59,6 @@ endif
ifeq ($(NOWINE),1)
WINE :=
WINPATH := wslpath
else
WINPATH := winepath
endif
################ Target Executable and Sources ###############

View File

@ -25,7 +25,15 @@ WSLENV ?= no
ifeq ($(WSLENV),no)
NOWINE = 0
else
# As of build 17063, WSLENV is defined in both WSL1 and WSL2
# so we need to use the kernel release to detect between
# the two.
UNAME_R := $(shell uname -r)
ifeq ($(findstring WSL2,$(UNAME_R)),)
NOWINE = 1
else
NOWINE = 0
endif
endif
ifeq ($(OS),Windows_NT)

View File

@ -27,7 +27,15 @@ WSLENV ?= no
ifeq ($(WSLENV),no)
NOWINE = 0
else
# As of build 17063, WSLENV is defined in both WSL1 and WSL2
# so we need to use the kernel release to detect between
# the two.
UNAME_R := $(shell uname -r)
ifeq ($(findstring WSL2,$(UNAME_R)),)
NOWINE = 1
else
NOWINE = 0
endif
endif
ifeq ($(OS),Windows_NT)

View File

@ -10,7 +10,15 @@ WSLENV ?= no
ifeq ($(WSLENV),no)
NOWINE = 0
else
# As of build 17063, WSLENV is defined in both WSL1 and WSL2
# so we need to use the kernel release to detect between
# the two.
UNAME_R := $(shell uname -r)
ifeq ($(findstring WSL2,$(UNAME_R)),)
NOWINE = 1
else
NOWINE = 0
endif
endif
ifeq ($(OS),Windows_NT)

View File

@ -10,7 +10,15 @@ WSLENV ?= no
ifeq ($(WSLENV),no)
NOWINE = 0
else
# As of build 17063, WSLENV is defined in both WSL1 and WSL2
# so we need to use the kernel release to detect between
# the two.
UNAME_R := $(shell uname -r)
ifeq ($(findstring WSL2,$(UNAME_R)),)
NOWINE = 1
else
NOWINE = 0
endif
endif
ifeq ($(OS),Windows_NT)

View File

@ -10,7 +10,15 @@ WSLENV ?= no
ifeq ($(WSLENV),no)
NOWINE = 0
else
# As of build 17063, WSLENV is defined in both WSL1 and WSL2
# so we need to use the kernel release to detect between
# the two.
UNAME_R := $(shell uname -r)
ifeq ($(findstring WSL2,$(UNAME_R)),)
NOWINE = 1
else
NOWINE = 0
endif
endif
ifeq ($(OS),Windows_NT)

View File

@ -10,7 +10,15 @@ WSLENV ?= no
ifeq ($(WSLENV),no)
NOWINE = 0
else
# As of build 17063, WSLENV is defined in both WSL1 and WSL2
# so we need to use the kernel release to detect between
# the two.
UNAME_R := $(shell uname -r)
ifeq ($(findstring WSL2,$(UNAME_R)),)
NOWINE = 1
else
NOWINE = 0
endif
endif
ifeq ($(OS),Windows_NT)