From ee2e1097d667b6adee488b6d1784afc6779acea1 Mon Sep 17 00:00:00 2001 From: Maxwell Geng <33229754+MaxwellGengYF@users.noreply.github.com> Date: Thu, 23 Mar 2023 10:14:42 +0800 Subject: Fixed libcmt warning --- xmake/modules/core/tools/clang.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 16bc0f245..2dc9caf8f 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -179,8 +179,8 @@ function nf_runtime(self, vs_runtime) } elseif kind == "ld" or kind == "sh" then maps = { - MD = "-lmsvcrt", - MDd = "-lmsvcrtd" + MD = "-nostdlib -lmsvcrt", + MDd = "-nostdlib -lmsvcrtd" } end return maps and maps[vs_runtime] -- cgit v1.3.1