summaryrefslogtreecommitdiff
path: root/xmake/core/base/binutils.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-11 23:35:23 +0800
committerruki <[email protected]>2025-12-12 09:00:44 +0800
commit4ccb8514f37fdf7108b41dbcd8ca77143841e1cd (patch)
treeff1b1ae7433fa16acb2bfccffcf4bebc4e9b8b98 /xmake/core/base/binutils.lua
parent409b21826872503ef479848321003d7ca4c1aad8 (diff)
set plain as default
Diffstat (limited to 'xmake/core/base/binutils.lua')
-rw-r--r--xmake/core/base/binutils.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/base/binutils.lua b/xmake/core/base/binutils.lua
index ea5d04ba8..9ddcfcf0c 100644
--- a/xmake/core/base/binutils.lua
+++ b/xmake/core/base/binutils.lua
@@ -105,10 +105,12 @@ end
-- Supports AR format (.a) and MSVC lib format (.lib)
-- @param libraryfile the static library file path (.a or .lib)
-- @param outputdir the output directory to extract object files
+-- @param opt the options (optional)
+-- - plain: extract all object files to the same directory (default: true)
-- @return true on success, false and error message on failure
-function binutils.extractlib(libraryfile, outputdir)
+function binutils.extractlib(libraryfile, outputdir, opt)
if binutils._extractlib then
- local ok, errors = binutils._extractlib(libraryfile, outputdir)
+ local ok, errors = binutils._extractlib(libraryfile, outputdir, opt and opt.plain)
if ok then
return true
else