Skip to content
Snippets Groups Projects
Commit d9f33d9d authored by Samuel Burbulla's avatar Samuel Burbulla
Browse files

Print message when compiling code just-in-time.

parent 26c83c5d
No related branches found
No related tags found
No related merge requests found
Pipeline #32124 passed
......@@ -143,6 +143,7 @@ class Builder:
with Lock(os.path.join(self.dune_py_dir, 'lock-'+moduleName+'.lock'), flags=LOCK_EX):
sourceFileName = os.path.join(self.generated_dir, moduleName + ".cc")
if not os.path.isfile(sourceFileName):
print("-- Compiling " + pythonName + "...")
logger.info("Loading " + pythonName + " (new)")
code = str(source)
# the CMakeLists.txt needs changing and cmake rerun - lock folder
......@@ -159,6 +160,7 @@ class Builder:
# update build system
self.compile()
elif isString(source) and not source == open(os.path.join(sourceFileName), 'r').read():
print("-- Compiling " + pythonName + "...")
logger.info("Loading " + pythonName + " (updated)")
code = str(source)
with open(os.path.join(sourceFileName), 'w') as out:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment