build/lattice/diamond: remove use of tools.mkdir_noerror

This commit is contained in:
Florent Kermarrec 2017-02-16 11:48:22 +01:00
parent 3711ae0615
commit 5fde6d6d3d
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ def _run_diamond(build_name, source, ver=None):
class LatticeDiamondToolchain:
def build(self, platform, fragment, build_dir="build", build_name="top",
toolchain_path="/opt/Diamond", run=True, **kwargs):
tools.mkdir_noerror(build_dir)
os.makedirs(build_dir, exist_ok=True)
cwd = os.getcwd()
os.chdir(build_dir)