File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -467,6 +467,8 @@ def create_static_lib(
467
467
objects , output_dir = self ._fix_object_args (objects , output_dir )
468
468
output_filename = self .library_filename (output_libname , output_dir = output_dir )
469
469
470
+ os .makedirs (output_dir , exist_ok = True )
471
+
470
472
if self ._need_link (objects , output_filename ):
471
473
lib_args = objects + ['/OUT:' + output_filename ]
472
474
if debug :
Original file line number Diff line number Diff line change @@ -215,6 +215,8 @@ def create_static_lib(
215
215
216
216
output_filename = self .library_filename (output_libname , output_dir = output_dir )
217
217
218
+ os .makedirs (output_dir , exist_ok = True )
219
+
218
220
if self ._need_link (objects , output_filename ):
219
221
self .mkpath (os .path .dirname (output_filename ))
220
222
self .spawn (self .archiver + [output_filename ] + objects + self .objects )
You can’t perform that action at this time.
0 commit comments