Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Log compiler/linker command line at DEBUG level
Browse files Browse the repository at this point in the history
  • Loading branch information
kynan committed Oct 13, 2015
1 parent 4f56b2d commit a39388b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyop2/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import ctypes
from hashlib import md5
from configuration import configuration
from logger import progress, INFO
from logger import debug, progress, INFO
from exceptions import CompilationError


Expand Down Expand Up @@ -125,6 +125,7 @@ def get_so(self, src, extension):
if self._ld is None:
cc = [self._cc] + self._cppargs + \
['-o', tmpname, cname] + self._ldargs
debug('Compilation command: %s', ' '.join(cc))
with file(logfile, "w") as log:
with file(errfile, "w") as err:
log.write("Compilation command:\n")
Expand All @@ -150,6 +151,8 @@ def get_so(self, src, extension):
cc = [self._cc] + self._cppargs + \
['-c', '-o', oname, cname]
ld = self._ld.split() + ['-o', tmpname, oname] + self._ldargs
debug('Compilation command: %s', ' '.join(cc))
debug('Link command: %s', ' '.join(ld))
with file(logfile, "w") as log:
with file(errfile, "w") as err:
log.write("Compilation command:\n")
Expand Down

0 comments on commit a39388b

Please sign in to comment.