diff options
| author | SineStriker <[email protected]> | 2025-04-21 23:37:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-23 11:30:30 +0800 |
| commit | 1beccbbd6b5d9472c786837f2e53c8721adc48f1 (patch) | |
| tree | a36f8ae478483ca7b612a3da49a34b16fdf2cd89 /xmake/modules | |
| parent | e16400105330feffae48c766eafc743717436ae1 (diff) | |
Rename `byproduct` to `artifactfile`
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/action/build/link_objects.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/target/action/clean/main.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/target/action/install/main.lua | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/private/action/build/link_objects.lua b/xmake/modules/private/action/build/link_objects.lua index d10ae1ef4..4ed1a0a41 100644 --- a/xmake/modules/private/action/build/link_objects.lua +++ b/xmake/modules/private/action/build/link_objects.lua @@ -49,11 +49,11 @@ function _do_link_target(target, opt) if verbose then -- show the full link command with raw arguments, it will expand @xxx.args for msvc/link on windows - print(linkinst:linkcmd(objectfiles, targetfile, {linkflags = linkflags, implib = target:byproduct("implib"), rawargs = true})) + print(linkinst:linkcmd(objectfiles, targetfile, {linkflags = linkflags, implib = target:artifactfile("implib"), rawargs = true})) end if not dryrun then - assert(linkinst:link(objectfiles, targetfile, {linkflags = linkflags, implib = target:byproduct("implib")})) + assert(linkinst:link(objectfiles, targetfile, {linkflags = linkflags, implib = target:artifactfile("implib")})) end end, {dependfile = target:dependfile(), lastmtime = os.mtime(target:targetfile()), diff --git a/xmake/modules/target/action/clean/main.lua b/xmake/modules/target/action/clean/main.lua index 8d828248d..ed7aeaafb 100644 --- a/xmake/modules/target/action/clean/main.lua +++ b/xmake/modules/target/action/clean/main.lua @@ -39,7 +39,7 @@ function main(target) -- @see https://github.com/xmake-io/xmake/issues/3052 if target:is_shared() then if target:is_plat("windows") then - local libfile = target:byproduct("implib") + local libfile = target:artifactfile("implib") local expfile = path.join(path.directory(libfile), path.basename(targetfile) .. ".exp") if os.isfile(libfile) then remove_files(libfile) @@ -50,7 +50,7 @@ function main(target) end if target:is_plat("mingw") then - local libfile = target:byproduct("implib") + local libfile = target:artifactfile("implib") if os.isfile(libfile) then remove_files(libfile) end diff --git a/xmake/modules/target/action/install/main.lua b/xmake/modules/target/action/install/main.lua index fa598b20c..7fef0d59c 100644 --- a/xmake/modules/target/action/install/main.lua +++ b/xmake/modules/target/action/install/main.lua @@ -237,7 +237,7 @@ function _install_shared(target, opt) -- @see https://github.com/xmake-io/xmake/issues/714 os.vcp(target:targetfile(), bindir) local libdir = _get_target_libdir(target, opt) - local target_implib = target:byproduct("implib") + local target_implib = target:artifactfile("implib") if os.isfile(target_implib) then os.mkdir(libdir) os.vcp(target_implib, libdir) |
