From a8c3110cbd68ee41150daae583ae8789eeadcaaf Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Tue, 21 May 2019 11:17:10 +0800 Subject: remove compiler check on *nix --- xmake/modules/core/tools/nvcc.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 943a060d3..8578832e6 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -115,10 +115,7 @@ function nf_warning(self, level) host_warning = cl_maps[level] -- for gcc/clang, or any gnu compatible compiler on *nix else - local gcc_clang_warning = gcc_clang_maps[level] - if gcc_clang_warning and self:has_flags(' -Xcompiler "' .. gcc_clang_warning .. '"', "cxflags") then - host_warning = gcc_clang_warning - end + host_warning = gcc_clang_maps[level] end if warning and host_warning then -- cgit v1.3.1