From 01f61e96f2a4399b594468c4aa6edc64ea2111fe Mon Sep 17 00:00:00 2001 From: star-hengxing Date: Fri, 9 Dec 2022 18:36:36 +0800 Subject: fix cuda vs runtime --- xmake/modules/core/tools/nvcc.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmake/modules/core/tools/nvcc.lua') diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 33c687695..454b6e934 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -166,6 +166,13 @@ function nf_optimize(self, level) end end +-- make vs runtime flag +function nf_runtime(self, vs_runtime) + if vs_runtime then + return (' -Xcompiler "-' .. vs_runtime .. '"'):trim() + end +end + -- make the language flag function nf_language(self, stdname) -- cgit v1.3.1