38
38
import ctypes
39
39
from hashlib import md5
40
40
from configuration import configuration
41
- from logger import progress , INFO
41
+ from logger import debug , progress , INFO
42
42
from exceptions import CompilationError
43
43
44
44
@@ -125,6 +125,7 @@ def get_so(self, src, extension):
125
125
if self ._ld is None :
126
126
cc = [self ._cc ] + self ._cppargs + \
127
127
['-o' , tmpname , cname ] + self ._ldargs
128
+ debug ('Compilation command: %s' , ' ' .join (cc ))
128
129
with file (logfile , "w" ) as log :
129
130
with file (errfile , "w" ) as err :
130
131
log .write ("Compilation command:\n " )
@@ -150,6 +151,8 @@ def get_so(self, src, extension):
150
151
cc = [self ._cc ] + self ._cppargs + \
151
152
['-c' , '-o' , oname , cname ]
152
153
ld = self ._ld .split () + ['-o' , tmpname , oname ] + self ._ldargs
154
+ debug ('Compilation command: %s' , ' ' .join (cc ))
155
+ debug ('Link command: %s' , ' ' .join (ld ))
153
156
with file (logfile , "w" ) as log :
154
157
with file (errfile , "w" ) as err :
155
158
log .write ("Compilation command:\n " )
0 commit comments