diff options
| author | ruki <[email protected]> | 2025-12-11 23:35:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-12 09:00:44 +0800 |
| commit | 4ccb8514f37fdf7108b41dbcd8ca77143841e1cd (patch) | |
| tree | ff1b1ae7433fa16acb2bfccffcf4bebc4e9b8b98 /xmake/core/base/binutils.lua | |
| parent | 409b21826872503ef479848321003d7ca4c1aad8 (diff) | |
set plain as default
Diffstat (limited to 'xmake/core/base/binutils.lua')
| -rw-r--r-- | xmake/core/base/binutils.lua | 6 |
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 |
