diff options
| author | ruki <[email protected]> | 2025-01-25 00:00:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-25 00:00:55 +0800 |
| commit | 7f01ecf6da7e040d4b0e27efaa035a8f27533e5e (patch) | |
| tree | 8e4dc0f9aa67562012ac427b3dcd64c81b3cf77f /xmake/core/tool/toolchain.lua | |
| parent | 493ece8e6cc9373187692109d3a9ffb0b7a9e866 (diff) | |
add toolchain dirs
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
| -rw-r--r-- | xmake/core/tool/toolchain.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index a19413d34..1085df198 100644 --- a/xmake/core/tool/toolchain.lua +++ b/xmake/core/tool/toolchain.lua @@ -640,6 +640,15 @@ function toolchain.directories() return dirs end +-- add toolchain directories +function toolchain.add_directories(...) + local dirs = toolchain.directories() + for _, dir in ipairs({...}) do + table.insert(dirs, 1, dir) + end + toolchain._DIRS = table.unique(dirs) +end + -- load toolchain function toolchain.load(name, opt) |
