build/lattice/diamond: use bash on linux
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 28 Oct 2018 14:40:52 +0000 (15:40 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 28 Oct 2018 14:40:52 +0000 (15:40 +0100)
litex/build/lattice/diamond.py

index 327799eba74b06bdbd35e4262556c421704b7851..17516aa471805d937dc4ddb3c2c05161e6b3d1d9 100644 (file)
@@ -82,7 +82,7 @@ def _run_diamond(build_name, toolchain_path, ver=None):
         build_script_file = "build_{}.sh".format(build_name)
 
         tools.write_to_file(build_script_file, build_script_contents)
-        r = subprocess.call(['/bin/sh', build_script_file])
+        r = subprocess.call(["bash", build_script_file])
         shutil.copy(os.path.join("implementation", build_name + "_implementation.bit"), build_name + ".bit")
     else:
         raise NotImplementedError