diff options
| author | ruki <[email protected]> | 2023-11-07 12:50:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-07 12:50:23 +0800 |
| commit | b4787295c82faad126d5ceab272b1e853cbf8437 (patch) | |
| tree | 196de5e93bb6c229601f12c3f895c6a7fb0fbe31 | |
| parent | 8f300c68633b474a2e2042abb0b01afc2f696e74 (diff) | |
| parent | bbbd20b8fa3e7153addba88cf9c46f72b599ae38 (diff) | |
Merge pull request #4368 from xmake-io/clang_cl
Improve languages for clang-cl
| -rw-r--r-- | xmake/modules/detect/tools/clang_cl/has_flags.lua | 2 |
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 8b8d1b04d..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(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)? |
