mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
Ported WSL2 fix from HeartGold
This commit is contained in:
parent
3737a9f543
commit
dd0867bb17
|
|
@ -3,7 +3,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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user