summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-05-21 11:17:10 +0800
committerOpportunityLiu <[email protected]>2019-05-21 11:17:10 +0800
commita8c3110cbd68ee41150daae583ae8789eeadcaaf (patch)
treecf523289dd801579e98a207a43874a01375c2b23 /xmake/modules/core/tools/nvcc.lua
parent43380eb2e3a4771d9ae43b905021c1a2810bf0eb (diff)
remove compiler check on *nix
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
-rw-r--r--xmake/modules/core/tools/nvcc.lua5
1 files changed, 1 insertions, 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