Print failed build commands in better format for debugging and testing
@@ -30,6 +30,7 @@ from .CustomKernels import isCustomKernelConfig
from .SolutionStructs import Solution
import abc
+import collections
import os
import shutil
import subprocess
@@ -5096,6 +5097,11 @@ for codeObjectFileName in codeObjectFileNames:
return (0, self.getKernelSource(kernel))
except subprocess.CalledProcessError as exc:
+ if isinstance(exc.cmd, collections.Sequence):
+ print("Command: ")
+ print(' '.join(exc.cmd))
+ print("returned non-zero exit status ", exc.returncode)
+ else:
print(exc)
return (-1, "")
except RuntimeError as exc:
