From 6d4c2c9b14b626df0fa71cb1869770d2923a470d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Feb 2021 22:27:53 +0100 Subject: (MSVC) embed MSVCRT runtime --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 1e533bf..dfc9a19 100644 --- a/Makefile +++ b/Makefile @@ -386,6 +386,14 @@ else DEFINES += -O3 -DNDEBUG=1 endif +ifneq (,$(findstring msvc,$(platform))) +ifeq ($(DEBUG),1) +DEFINES += -MTd +else +DEFINES += -MT +endif +endif + LDFLAGS += $(LIBM) include Makefile.common -- cgit v1.2.3