From 9237c3dc34e162822eb8b9edb9884f959f1a2ae8 Mon Sep 17 00:00:00 2001 From: Futrime Date: Thu, 4 Jan 2024 20:32:45 +0800 Subject: [PATCH] build: add default MD --- xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake.lua b/xmake.lua index 032f8a6..df1d551 100644 --- a/xmake.lua +++ b/xmake.lua @@ -3,6 +3,10 @@ add_rules("mode.debug", "mode.release", "mode.releasedbg") add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git") add_requires("levilamina") -- or add_requires("levilamina x.x.x") to specify target LeviLamina version +if not has_config("vs_runtime") then + set_runtimes("MD") +end + target("plugin") -- Change this to your plugin name. add_cxflags( "/EHa",