diff options
| author | ruki <[email protected]> | 2024-05-11 12:25:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-05-11 12:25:49 +0800 |
| commit | 5c1dde0048109547f843cf9302cd553ad3375344 (patch) | |
| tree | 4ce83ecf0d46eef38d3178373e9a89ccb3ff981e /xmake/modules | |
| parent | 149845abdec93c886779abfc705d5e4d0c527a9f (diff) | |
continue to use ar instead of gcc-ar
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/gcc_ar.lua | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/xmake/modules/core/tools/gcc_ar.lua b/xmake/modules/core/tools/gcc_ar.lua index f6834a20c..ecfdca92a 100644 --- a/xmake/modules/core/tools/gcc_ar.lua +++ b/xmake/modules/core/tools/gcc_ar.lua @@ -20,25 +20,3 @@ inherit("ar") --- make the link arguments list --- @see https://github.com/xmake-io/xmake/issues/5051 --- @note gcc-ar.exe does not support `gcc-ar.exe @file` -function linkargv(self, objectfiles, targetkind, targetfile, flags, opt) - local argv = table.join(flags, targetfile, objectfiles) - return self:program(), argv -end - --- link the library file -function link(self, objectfiles, targetkind, targetfile, flags, opt) - opt = opt or {} - os.mkdir(path.directory(targetfile)) - - -- @note remove the previous archived file first to force recreating a new file - os.tryrm(targetfile) - - -- link it - local program, argv = linkargv(self, objectfiles, targetkind, targetfile, flags, opt) - os.runv(program, argv, {envs = self:runenvs(), shell = opt.shell}) -end - - |
