diff --git a/tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh b/tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh
index b2fd3125c426d0ef5e717ca3b091839588edc746..c68dd2419ac8559df7ca66bc2299291fe60c4da5 100755
--- a/tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh
+++ b/tools/oneclick/base/modelsim_regression_test_vhdl_cron.sh
@@ -41,6 +41,12 @@ rm $LOGFILE
 ###############################################################################
 source $HOME/.bashrc
 
+###############################################################################
+# Empty the simulation build dir, re-create it with modelsim_config.py
+###############################################################################
+rm -rf $RADIOHDL/build/unb1/modelsim
+python $RADIOHDL/tools/oneclick/base/modelsim_config.py
+
 ###############################################################################
 # Perform the regression test and put the output in a log file
 ###############################################################################