summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-07 23:06:57 +0800
committerruki <[email protected]>2023-11-07 23:06:57 +0800
commit5e6d94f24963e246d8c231c8ecb49ad86c370d4d (patch)
tree697a985fcd4d9854775fdcb61825ab919928c262 /xmake/modules/detect/tools
parentfa4e975e916415a1a82c7aff16f891e761bd17e1 (diff)
improve clang_cl language
Diffstat (limited to 'xmake/modules/detect/tools')
-rw-r--r--xmake/modules/detect/tools/clang_cl/has_flags.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/clang_cl/has_flags.lua b/xmake/modules/detect/tools/clang_cl/has_flags.lua
index c919ed4b0..704a30f1a 100644
--- a/xmake/modules/detect/tools/clang_cl/has_flags.lua
+++ b/xmake/modules/detect/tools/clang_cl/has_flags.lua
@@ -79,7 +79,7 @@ function _check_try_running(flags, opt)
-- check flags for compiler
-- @note we cannot use os.nuldev() as the output file, maybe run failed for some flags, e.g. --coverage
- return _try_running(opt.program, table.join("-Werror,-Wunused-command-line-argument", flags, "-c", "-o", os.tmpfile(), sourcefile))
+ return _try_running(opt.program, table.join("-Werror=unused-command-line-argument", flags, "-c", "-o", os.tmpfile(), sourcefile))
end
-- has_flags(flags)?