Fix: .split() the CC environment variable in lttng-gen-tp
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Apr 2014 15:28:23 +0000 (11:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 Apr 2014 17:38:54 +0000 (13:38 -0400)
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 <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tools/lttng-gen-tp

index a3a01f27c033101e87f4a879c032fcab095bd8e7..b62cd9907618207de72604e947a3b0ab11df9558 100755 (executable)
@@ -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:
This page took 0.025741 seconds and 4 git commands to generate.