diff options
| author | ruki <[email protected]> | 2020-09-25 00:50:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-25 00:50:35 +0800 |
| commit | 475233c8d4ca369e967c102558068392c9e496e8 (patch) | |
| tree | 7c545db4f3dfe5a30891b538659e7893f1af446e /xmake/modules | |
| parent | ba3a8eba461121eed5028f3e1f5c426fda348637 (diff) | |
rename some pathes to paths
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/detect/packages/find_zlib.lua | 8 | ||||
| -rw-r--r-- | xmake/modules/detect/tools/find_sdcc.lua | 12 | ||||
| -rw-r--r-- | xmake/modules/private/utils/bcsave.lua | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/xmake/modules/detect/packages/find_zlib.lua b/xmake/modules/detect/packages/find_zlib.lua index 8624c7bdd..88205b60c 100644 --- a/xmake/modules/detect/packages/find_zlib.lua +++ b/xmake/modules/detect/packages/find_zlib.lua @@ -37,14 +37,14 @@ function main(opt) -- if opt.plat == "windows" then - -- init search pathes - local pathes = {"$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath)", + -- init search paths + local paths = {"$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath)", "$(env PROGRAMFILES)/GnuWin32", "$(env PROGRAMFILES)/zlib"} -- find library local result = {links = {}, linkdirs = {}, includedirs = {}} - local linkinfo = find_library("zlib", pathes, {suffixes = "lib"}) + local linkinfo = find_library("zlib", paths, {suffixes = "lib"}) if not linkinfo then return end @@ -54,7 +54,7 @@ function main(opt) table.insert(result.linkdirs, linkinfo.linkdir) -- find include - local includedir = find_path("zlib.h", pathes, {suffixes = "include"}) + local includedir = find_path("zlib.h", paths, {suffixes = "include"}) if includedir then -- save include directory diff --git a/xmake/modules/detect/tools/find_sdcc.lua b/xmake/modules/detect/tools/find_sdcc.lua index a6f7bbd8b..5c2867d02 100644 --- a/xmake/modules/detect/tools/find_sdcc.lua +++ b/xmake/modules/detect/tools/find_sdcc.lua @@ -40,17 +40,17 @@ function main(opt) opt = opt or {} opt.command = opt.command or "--version" - -- add search pathes - local pathes = {} + -- add search paths + local paths = {} local bindir = get_config("bin") if bindir and os.isdir(bindir) then - table.insert(pathes, bindir) + table.insert(paths, bindir) end if is_host("windows") then - table.insert(pathes, "$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\SDCC)\\bin") + table.insert(paths, "$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\SDCC)\\bin") end - if #pathes > 0 then - opt.pathes = pathes + if #paths > 0 then + opt.pathes = paths end -- find program diff --git a/xmake/modules/private/utils/bcsave.lua b/xmake/modules/private/utils/bcsave.lua index 145395d5b..b0d5f400b 100644 --- a/xmake/modules/private/utils/bcsave.lua +++ b/xmake/modules/private/utils/bcsave.lua @@ -64,7 +64,7 @@ function save(sourcedir, outputdir, opt) local bcfile = override and os.tmpfile() or path.join(outputdir, relativepath) -- generate bitcode file - -- @note we disable cache to ensure all display pathes are correct + -- @note we disable cache to ensure all display paths are correct bcsave(luafile, bcfile, {strip = opt.strip, displaypath = displaypath, nocache = true}) -- trace |
