diff options
| author | Arthur LAURENT <[email protected]> | 2025-05-12 11:48:30 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-05-12 11:48:30 +0200 |
| commit | d14cbdeb1a7d84e58d7b17421e0e8904c44aef46 (patch) | |
| tree | d27e820b3a9b77218dcbd6b9ccbafbb62b71c25e /xmake/rules/c++/modules/msvc/support.lua | |
| parent | e7ca027a1ebc0ad0e02160cd0c6b3cd502efadc8 (diff) | |
(C++ modules support) move import at the top of the file for msvc support.lua
Diffstat (limited to 'xmake/rules/c++/modules/msvc/support.lua')
| -rw-r--r-- | xmake/rules/c++/modules/msvc/support.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/msvc/support.lua b/xmake/rules/c++/modules/msvc/support.lua index 4cb4a7fad..41c5cd44e 100644 --- a/xmake/rules/c++/modules/msvc/support.lua +++ b/xmake/rules/c++/modules/msvc/support.lua @@ -20,6 +20,7 @@ -- imports import("core.base.semver") +import("core.tool.toolchain") import("core.project.config") import("lib.detect.find_tool") import(".support", {inherit = true}) @@ -123,7 +124,7 @@ function get_stdmodules(target, opt) end local msvc if opt.toolchain then - msvc = import("core.tool.toolchain", {anonymous = true}).load("msvc", {plat = opt.toolchain:plat(), arch = opt.toolchain:arch()}) + msvc = toolchain.load("msvc", {plat = opt.toolchain:plat(), arch = opt.toolchain:arch()}) else msvc = target:toolchain("msvc") end |
