diff options
| author | ruki <[email protected]> | 2026-08-12 00:35:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-08-12 00:35:48 +0800 |
| commit | 56a581b37b3c4e7d8b96415a03f850db827956ab (patch) | |
| tree | df58b1231679ed59d9266ae792b21fe7f5b7c3de /xmake/core/tool/toolchain.lua | |
| parent | 6b35c254f0f918c05989b7e62cfd8bca87cc97b5 (diff) | |
improve addon and comment
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
| -rw-r--r-- | xmake/core/tool/toolchain.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index 76438abfa..6f55a898d 100644 --- a/xmake/core/tool/toolchain.lua +++ b/xmake/core/tool/toolchain.lua @@ -672,12 +672,11 @@ end -- function toolchain.parsename(name) - -- the toolchain of an addon? e.g. set_toolchains("@addon.esp32.xtensa"), set_toolchains("@self.xtensa") + -- the toolchain of an addon? + -- e.g. set_toolchains("@addon/esp32/xtensa"), set_toolchains("@addon/esp32/clang@llvm"), set_toolchains("@self/xtensa") -- -- @note we need to parse it first, because `@` is also used for the toolchain packages, e.g. "@zig" -- - -- e.g. set_toolchains("@addon/esp32/xtensa"), set_toolchains("@addon/esp32/clang@llvm"), set_toolchains("@self/xtensa") - -- -- @note we only strip the `@addon/<addon>/` prefix here, the rest is parsed as usual, -- so the addon toolchains can also be bound to packages, e.g. "@addon/esp32/clang@llvm" -- @@ -777,8 +776,6 @@ function toolchain.directories() return dirs end - - -- add toolchain directories function toolchain.add_directories(...) local dirs = toolchain.directories() |
