mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-23 02:40:59 +00:00
qapi: Generators crash when --output-dir isn't given, fix
Backports commit c4f498fe8532cdacc609262b104322911108df54 from qemu
This commit is contained in:
parent
741783073f
commit
809b439562
|
@ -1032,6 +1032,7 @@ def open_output(output_dir, do_c, do_h, prefix, c_file, h_file,
|
||||||
c_file = output_dir + prefix + c_file
|
c_file = output_dir + prefix + c_file
|
||||||
h_file = output_dir + prefix + h_file
|
h_file = output_dir + prefix + h_file
|
||||||
|
|
||||||
|
if output_dir:
|
||||||
try:
|
try:
|
||||||
os.makedirs(output_dir)
|
os.makedirs(output_dir)
|
||||||
except os.error, e:
|
except os.error, e:
|
||||||
|
|
Loading…
Reference in a new issue