kuuko pushed a commit to branch master.
commit 42376b27fcaa4a48ff392436af1593e5a9617d5f
Author: Kai Huuhko <[email protected]>
Date: Mon Aug 12 23:12:13 2013 +0300
api_coverage: Fix C header discovery
---
api_coverage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api_coverage.py b/api_coverage.py
index be8c51b..2fb9f2f 100755
--- a/api_coverage.py
+++ b/api_coverage.py
@@ -54,7 +54,7 @@ def pkg_config(require, min_vers=None):
ver = subprocess.check_output(["pkg-config", "--modversion",
require]).decode("utf-8").strip()
if min_vers is not None:
assert 0 == subprocess.call(["pkg-config", "--atleast-version",
min_vers, require])
- cflags = subprocess.check_output(["pkg-config", "--cflags",
require]).decode("utf-8").split()
+ cflags = subprocess.check_output(["pkg-config", "--cflags-only-I",
require]).decode("utf-8").split()
sys.stdout.write("OK, found " + ver + "\n")
return cflags
except (OSError, subprocess.CalledProcessError):
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk