Create a separate directory for simulation compiliation.

sometimes convert_swig is the first to process a file and it needs
to be able to create the output directory for its output.  The output
directory should use perl's make_path because the output directories
are deep down in the build area.

refs #80
This commit is contained in:
Alex Lin 2015-07-16 16:51:04 -05:00
parent a5e7699d40
commit 6c3ca93231

View File

@ -13,6 +13,7 @@ use gte ;
use get_headers ; use get_headers ;
use trick_version ; use trick_version ;
use Digest::MD5 qw(md5_hex) ; use Digest::MD5 qw(md5_hex) ;
use File::Path qw(make_path) ;
## ##
## ================================================================================ ## ================================================================================
@ -431,7 +432,7 @@ sub process_file($$) {
$out_file = "$out_dir/$out_file" ; $out_file = "$out_dir/$out_file" ;
if ( ! -e $out_dir ) { if ( ! -e $out_dir ) {
mkdir $out_dir ; make_path($out_dir) ;
} }
## Open the SWIG interface file. ## Open the SWIG interface file.