diff options
| author | ruki <[email protected]> | 2024-07-08 22:59:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-08 22:59:07 +0800 |
| commit | 6161154cd0ee1552f4a369d5da80c82c2fde9407 (patch) | |
| tree | 684c3d1419236a48e94e095dabe9c8a868200237 /xmake/toolchains/msvc/load.lua | |
| parent | 8621473fcae841844b670173df23646f7e1a40d0 (diff) | |
support arm64ec
Diffstat (limited to 'xmake/toolchains/msvc/load.lua')
| -rw-r--r-- | xmake/toolchains/msvc/load.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/toolchains/msvc/load.lua b/xmake/toolchains/msvc/load.lua index 486c8e217..c5f2f6dac 100644 --- a/xmake/toolchains/msvc/load.lua +++ b/xmake/toolchains/msvc/load.lua @@ -57,7 +57,7 @@ function main(toolchain) toolchain:set("toolset", "mrc", "rc.exe") if toolchain:is_arch("x86") then toolchain:set("toolset", "as", "ml.exe") - elseif toolchain:is_arch("arm64") then + elseif toolchain:is_arch("arm64", "arm64ec") then toolchain:set("toolset", "as", "[email protected]") elseif toolchain:is_arch("arm.*") then toolchain:set("toolset", "as", "[email protected]") @@ -68,6 +68,11 @@ function main(toolchain) toolchain:set("toolset", "sh", "link.exe") toolchain:set("toolset", "ar", "link.exe") + -- init flags + if toolchain:is_arch("arm64ec") then + toolchain:add("cxflags", "/arm64EC") + end + -- add vs environments local expect_vars = {"PATH", "LIB", "INCLUDE", "LIBPATH"} local curenvs = os.getenvs() |
