summaryrefslogtreecommitdiff
path: root/xmake/actions/run/main.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/actions/run/main.lua
parent8119b93a66582b3b2f0443f5984b7a0336c30c8f (diff)
export compile_commands.json for clang tools
Diffstat (limited to 'xmake/actions/run/main.lua')
-rw-r--r--xmake/actions/run/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/run/main.lua b/xmake/actions/run/main.lua
index 5127e8b68..ee30b6c7c 100644
--- a/xmake/actions/run/main.lua
+++ b/xmake/actions/run/main.lua
@@ -89,7 +89,7 @@ function main()
task.run("build", {target = targetname, all = option.get("all")})
-- enter project directory
- local olddir = os.cd(project.directory())
+ local oldir = os.cd(project.directory())
-- run the given target?
if targetname then
@@ -107,5 +107,5 @@ function main()
end
-- leave project directory
- os.cd(olddir)
+ os.cd(oldir)
end