Skip to content

Commit ec95c38

Browse files
committed
Minor fixes in Makefiles:
- Project Makefile: Fallback $OS in linux to $(UNAME_S) which uses `uname -s` in linux, since $(OS) is specific to windows. - Luac Cross: add .exe when compiling for windows.
1 parent a9e31a7 commit ec95c38

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/lua/luac_cross/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ else
8888
IMAGE := ../../../luac.cross.int
8989
endif
9090

91+
ifeq ($(OS),Windows_NT)
92+
IMAGE := $(IMAGE).exe
93+
endif
94+
9195
.PHONY: test clean all
9296

9397
all: $(DEPS) $(IMAGE)

app/lua53/host/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ else
9090
IMAGE := ../../../luac.cross.int
9191
endif
9292

93+
ifeq ($(OS),Windows_NT)
94+
IMAGE := $(IMAGE).exe
95+
endif
96+
9397
.PHONY: test clean all
9498

9599
all: $(DEPS) $(IMAGE)

0 commit comments

Comments
 (0)