summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-26 23:22:02 +0800
committerruki <[email protected]>2019-08-26 14:12:15 +0800
commit025720a6a4907b25c244c46cf8f55fa1c22b0795 (patch)
tree1faeec6a9f1e805c0dc197c21464671e2419a009
parent55e6f6992aa23a1ae1f5529aeb83021e40e4198b (diff)
fix pkg-config
-rw-r--r--xmake/modules/lib/detect/pkg_config.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/pkg_config.lua b/xmake/modules/lib/detect/pkg_config.lua
index 990aaa4f6..4e766e313 100644
--- a/xmake/modules/lib/detect/pkg_config.lua
+++ b/xmake/modules/lib/detect/pkg_config.lua
@@ -141,6 +141,7 @@ function libinfo(name, opt)
end
-- get libs and cflags
+ local result = nil
local flags = try { function () return os.iorunv(pkg_config, {"--libs", "--cflags", name}) end }
if flags then