diff options
| author | ruki <[email protected]> | 2022-09-09 00:28:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-09 00:28:31 +0800 |
| commit | 4a4fe52b63bda69a97c9edd084bea5400b8db069 (patch) | |
| tree | 65383e67b8a94f67f9d21c9a6e027282f34ed770 /xmake/modules | |
| parent | 04460382d3ef1499884c09e14c08b2940c13fda2 (diff) | |
improve pcheader for clang-cl
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/action/build/pcheader.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/build/pcheader.lua b/xmake/modules/private/action/build/pcheader.lua index bc16bd29f..37fe085d0 100644 --- a/xmake/modules/private/action/build/pcheader.lua +++ b/xmake/modules/private/action/build/pcheader.lua @@ -27,7 +27,7 @@ function config(target, langkind, opt) if pcheaderfile then local headerfile = target:autogenfile(pcheaderfile) if target:is_plat("windows") and - target:has_tool(langkind == "cxx" and "cxx" or "cc", "cl") then + target:has_tool(langkind == "cxx" and "cxx" or "cc", "cl", "clang_cl") then -- fix `#pragma once` for msvc -- https://github.com/xmake-io/xmake/issues/2667 if not os.isfile(headerfile) then |
