diff options
| author | ruki <[email protected]> | 2017-03-26 23:00:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-26 23:00:41 +0800 |
| commit | f3611f44a7afda2e651eac6336d3494e011c9272 (patch) | |
| tree | f279e3dc6b38f792ba97b3513f92230e36dc2afa | |
| parent | 9246c2b152821cc708f886e98b11b904294a74ce (diff) | |
fix rm bug from uninstall
| -rw-r--r-- | xmake/platforms/installer.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/platforms/installer.lua b/xmake/platforms/installer.lua index feff16472..0a0d90456 100644 --- a/xmake/platforms/installer.lua +++ b/xmake/platforms/installer.lua @@ -111,14 +111,14 @@ function uninstall_library_on_unix(target) os.rm(path.join(librarydir, path.filename(target:targetfile()))) -- reove the config.h from the include directory - local _, configoutput = target:configheader(includedir) - if configoutput then - os.rm(configoutput, true) + local _, configheader = target:configheader(includedir) + if configheader then + os.rm(configheader) end -- remove headers from the include directory local _, dstheaders = target:headerfiles(includedir) for _, dstheader in ipairs(dstheaders) do - os.rm(dstheader, true) + os.rm(dstheader) end end |
