From: Jérémie Galarneau Date: Tue, 8 Apr 2014 15:28:23 +0000 (-0400) Subject: Fix: .split() the CC environment variable in lttng-gen-tp X-Git-Tag: v2.4.1~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fcb63a2a653c223f557d39777ca7eaeb03ab6e5f;p=lttng-ust.git Fix: .split() the CC environment variable in lttng-gen-tp The CC variable might contain command line arguments which lttng-gen-tp currently does not handle. This fix ensures that the arguments are properly passed on to the compiler binary as if a normal Makefile was used. Signed-off-by: Jérémie Galarneau Signed-off-by: Mathieu Desnoyers --- diff --git a/tools/lttng-gen-tp b/tools/lttng-gen-tp index a3a01f27..b62cd990 100755 --- a/tools/lttng-gen-tp +++ b/tools/lttng-gen-tp @@ -94,7 +94,7 @@ class ObjFile: if 'CC' in os.environ: cc = os.environ['CC'] try: - subprocess.call(cc, + subprocess.call(cc.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) except OSError as msg: