build/lattice/diamond: use bash on linux

This commit is contained in:
Florent Kermarrec 2018-10-28 15:40:52 +01:00
parent d029cd243d
commit 397e3c7682
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def _run_diamond(build_name, toolchain_path, ver=None):
build_script_file = "build_{}.sh".format(build_name) build_script_file = "build_{}.sh".format(build_name)
tools.write_to_file(build_script_file, build_script_contents) 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") shutil.copy(os.path.join("implementation", build_name + "_implementation.bit"), build_name + ".bit")
else: else:
raise NotImplementedError raise NotImplementedError