fix(make): fail properly on Windows

This commit is contained in:
ObserverOfTime 2024-06-13 12:26:05 +03:00 committed by Amaan Qureshi
parent 63eeb34804
commit 2eeeed0f2a
2 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,7 @@
ifeq ($(OS),Windows_NT)
$(error Windows is not supported)
endif
VERSION := 0.0.1
LANGUAGE_NAME := tree-sitter-PARSER_NAME
@ -37,9 +41,7 @@ ARFLAGS ?= rcs
override CFLAGS += -I$(SRC_DIR) -std=c11 -fPIC
# OS-specific bits
ifeq ($(OS),Windows_NT)
$(error "Windows is not supported")
else ifeq ($(shell uname),Darwin)
ifeq ($(shell uname),Darwin)
SOEXT = dylib
SOEXTVER_MAJOR = $(SONAME_MAJOR).dylib
SOEXTVER = $(SONAME_MAJOR).$(SONAME_MINOR).dylib