Skip to content

Commit

Permalink
Fix -temp_dir issue with run_vtr_task when providing extra arguments.
Browse files Browse the repository at this point in the history
Puts -temp_dir before any extra script arguments to ensure it gets
picked up by the script and not passed onto VPR.
  • Loading branch information
kmurray committed May 2, 2016
1 parent e9d5e27 commit 475308c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vtr_flow/scripts/run_vtr_task.pl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ sub run_single_task {
# This is hack to automatically add the option '-temp_dir .' if using the run_vtr_flow.pl script
# This ensures that a 'temp' folder is not created in each circuit directory
if ( !( $script_params =~ /-temp_dir/ ) ) {
$script_params = $script_params . " -temp_dir . ";
#-temp_dir must come before the script_params, so that it gets picked up by run_vtr_flow
# and not passed on as an argument to a tool (e.g. VPR)
$script_params = " -temp_dir . " . $script_params;
}
}
else {
Expand Down

0 comments on commit 475308c

Please sign in to comment.