diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-05-27 13:50:49 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-05-27 13:50:49 +0200 |
commit | ba2507638a00ef262698aeaf66d21f38d6333aca (patch) | |
tree | d9cbbbbc3321c458fb56596482bf18327544e25f | |
parent | 91219ac8bce6d165065af645698051e6d9413dfb (diff) |
mingw-runtime: make sure all paths exists before copying
-rw-r--r-- | recipes/mingw-runtime.recipe | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes/mingw-runtime.recipe b/recipes/mingw-runtime.recipe index abc27fa..cdecaed 100644 --- a/recipes/mingw-runtime.recipe +++ b/recipes/mingw-runtime.recipe @@ -46,6 +46,10 @@ class Recipe(recipe.Recipe): binmingw = os.path.join(self.config.host, 'lib') libmingw = os.path.join(self.config.host, 'lib') # copy the dll + if not os.path.exists(os.path.join(self.config.prefix, 'bin')): + os.makedirs(os.path.join(self.config.prefix, 'bin')) + if not os.path.exists(os.path.join(self.config.prefix, 'lib')): + os.makedirs(os.path.join(self.config.prefix, 'lib')) for f in ['libstdc++-6', 'libgomp-1']: shutil.copy( os.path.join(self.config.toolchain_prefix, binmingw, f + '.dll'), |