diff options
| author | SirLynix <[email protected]> | 2025-05-10 07:40:01 +0200 |
|---|---|---|
| committer | SirLynix <[email protected]> | 2025-05-10 07:40:01 +0200 |
| commit | 2f886d8133855895229d3ce958e17fbfa86d2bca (patch) | |
| tree | 201ba938c2a17c54f0f6d7c1a6613e768ad97931 | |
| parent | 5e3c763b1ace6ab5e03dfa997cf681857de9993a (diff) | |
Make rustc target_triple public
from private.tools.rust.target_triple to core.tools.rustc.target_triple
| -rw-r--r-- | xmake/modules/core/tools/rustc/target_triple.lua (renamed from xmake/modules/private/tools/rust/target_triple.lua) | 0 | ||||
| -rw-r--r-- | xmake/modules/package/manager/cargo/install_package.lua | 2 | ||||
| -rw-r--r-- | xmake/toolchains/rust/xmake.lua | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/tools/rust/target_triple.lua b/xmake/modules/core/tools/rustc/target_triple.lua index 3a83aed7e..3a83aed7e 100644 --- a/xmake/modules/private/tools/rust/target_triple.lua +++ b/xmake/modules/core/tools/rustc/target_triple.lua diff --git a/xmake/modules/package/manager/cargo/install_package.lua b/xmake/modules/package/manager/cargo/install_package.lua index 9f5d069cb..a5fe7f423 100644 --- a/xmake/modules/package/manager/cargo/install_package.lua +++ b/xmake/modules/package/manager/cargo/install_package.lua @@ -21,9 +21,9 @@ -- imports import("core.base.option") import("core.project.config") +import("core.tools.rustc.target_triple") import("lib.detect.find_tool") import("private.tools.rust.check_target") -import("private.tools.rust.target_triple") -- translate local path in dependencies -- @see https://github.com/xmake-io/xmake/issues/4222 diff --git a/xmake/toolchains/rust/xmake.lua b/xmake/toolchains/rust/xmake.lua index a17dc3517..95c0f189a 100644 --- a/xmake/toolchains/rust/xmake.lua +++ b/xmake/toolchains/rust/xmake.lua @@ -28,7 +28,7 @@ toolchain("rust") set_toolset("rcar", "$(env RC)", "rustc") on_load(function (toolchain) - import("private.tools.rust.target_triple") + import("core.tools.rustc.target_triple") local opt = {} if toolchain:config("appledev") == "simulator" then |
