diff options
| author | ruki <[email protected]> | 2024-02-05 23:53:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-05 23:53:22 +0800 |
| commit | 968d7dc6f05661c381a49e965f56f397cdbb7868 (patch) | |
| tree | 60c5033e4765236492c937a2d40387c315a72317 /xmake/toolchains | |
| parent | 8020014e06e7a43c9cd6cd3724f41521d8131723 (diff) | |
find cosmocc
Diffstat (limited to 'xmake/toolchains')
| -rw-r--r-- | xmake/toolchains/cosmocc/check.lua | 1 | ||||
| -rw-r--r-- | xmake/toolchains/cosmocc/xmake.lua | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/xmake/toolchains/cosmocc/check.lua b/xmake/toolchains/cosmocc/check.lua index a1abb7daf..01fa54f8b 100644 --- a/xmake/toolchains/cosmocc/check.lua +++ b/xmake/toolchains/cosmocc/check.lua @@ -21,6 +21,7 @@ -- imports import("core.project.config") import("lib.detect.find_path") +import("detect.sdks.find_cross_toolchain") -- check the cross toolchain function main(toolchain) diff --git a/xmake/toolchains/cosmocc/xmake.lua b/xmake/toolchains/cosmocc/xmake.lua index d2637be98..f09eb836b 100644 --- a/xmake/toolchains/cosmocc/xmake.lua +++ b/xmake/toolchains/cosmocc/xmake.lua @@ -35,10 +35,10 @@ toolchain("cosmocc") on_load(function (toolchain) if toolchain:is_arch("x86_64", "x64") then - target:set("toolset", "ranlib", "x86_64-linux-cosmo-ranlib") - target:set("toolset", "strip", "x86_64-linux-cosmo-strip") + toolchain:set("toolset", "ranlib", "x86_64-linux-cosmo-ranlib") + toolchain:set("toolset", "strip", "x86_64-linux-cosmo-strip") else - target:set("toolset", "ranlib", "aarch64-linux-cosmo-ranlib") - target:set("toolset", "strip", "aarch64-linux-cosmo-strip") + toolchain:set("toolset", "ranlib", "aarch64-linux-cosmo-ranlib") + toolchain:set("toolset", "strip", "aarch64-linux-cosmo-strip") end end) |
