summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ar.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-19 14:56:46 +0800
committerruki <[email protected]>2017-07-19 14:56:46 +0800
commitf22b46466ebed2df42379172a31107e071b99979 (patch)
treecb8dbafadd4bfc0fa85c40b2c239c1c1b0f91bf4 /xmake/modules/core/tools/ar.lua
parent8119b93a66582b3b2f0443f5984b7a0336c30c8f (diff)
export compile_commands.json for clang tools
Diffstat (limited to 'xmake/modules/core/tools/ar.lua')
-rw-r--r--xmake/modules/core/tools/ar.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/ar.lua b/xmake/modules/core/tools/ar.lua
index b1a8fbf92..3c020f6e8 100644
--- a/xmake/modules/core/tools/ar.lua
+++ b/xmake/modules/core/tools/ar.lua
@@ -82,7 +82,7 @@ function extract(self, libraryfile, objectdir)
libraryfile = path.absolute(libraryfile)
-- enter the object directory
- local olddir = os.cd(objectdir)
+ local oldir = os.cd(objectdir)
-- extract it
os.runv(self:program(), {"-x", libraryfile})
@@ -98,6 +98,6 @@ function extract(self, libraryfile, objectdir)
end
-- leave the object directory
- os.cd(olddir)
+ os.cd(oldir)
end