projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix for #745 deadlock with baddr statedump+fork
[lttng-ust.git]
/
tools
/
lttng-gen-tp
diff --git
a/tools/lttng-gen-tp
b/tools/lttng-gen-tp
index ed0c48fa549973f844e4001cb99adbc2b8325959..b62cd9907618207de72604e947a3b0ab11df9558 100755
(executable)
--- a/
tools/lttng-gen-tp
+++ b/
tools/lttng-gen-tp
@@
-1,4
+1,4
@@
-#!/usr/bin/python
+#!/usr/bin/
env
python
#
# Copyright (c) 2012 Yannick Brosseau <yannick.brosseau@gmail.com>
#
#
# Copyright (c) 2012 Yannick Brosseau <yannick.brosseau@gmail.com>
#
@@
-94,7
+94,7
@@
class ObjFile:
if 'CC' in os.environ:
cc = os.environ['CC']
try:
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:
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except OSError as msg:
@@
-131,19
+131,19
@@
class ObjFile:
if cc == "":
raise RuntimeError("No C Compiler detected")
if 'CPPFLAGS' in os.environ:
if cc == "":
raise RuntimeError("No C Compiler detected")
if 'CPPFLAGS' in os.environ:
- cppflags = os.environ['CPPFLAGS']
+ cppflags =
" " +
os.environ['CPPFLAGS']
else:
cppflags = ""
if 'CFLAGS' in os.environ:
else:
cppflags = ""
if 'CFLAGS' in os.environ:
- cflags = os.environ['CFLAGS']
+ cflags =
" " +
os.environ['CFLAGS']
else:
cflags = ""
if 'LDFLAGS' in os.environ:
else:
cflags = ""
if 'LDFLAGS' in os.environ:
- ldflags = os.environ['LDFLAGS']
+ ldflags =
" " +
os.environ['LDFLAGS']
else:
ldflags = ""
else:
ldflags = ""
- command = cc + " -c
" + cppflags + cflags + ldflags + " -I. -llttng-ust" + " -o " + self.outputFilename + " " + cFilename
+ command = cc + " -c" + cppflags + cflags + ldflags + " -I. -llttng-ust" + " -o " + self.outputFilename + " " + cFilename
if verbose:
print("Compile command: " + command)
subprocess.call(command.split())
if verbose:
print("Compile command: " + command)
subprocess.call(command.split())
This page took
0.023463 seconds
and
4
git commands to generate.