File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -632,8 +632,10 @@ proc CheckLibraryExists {} {
632632proc SetAndCreateBuildOutputDirectory {} {
633633variable HaveNotCreatedBuildOutputDirectory
634634variable OsvvmBuildOutputDirectory
635+ variable BuildName
635636
636- if {$::osvvm::BuildStarted } {
637+ # if {$::osvvm::BuildStarted} {}
638+ if {$::osvvm::BuildName ne " " } {
637639 if {$HaveNotCreatedBuildOutputDirectory } {
638640 # When run as part of a build, use the BuildName
639641 set OsvvmBuildOutputDirectory [file join $::osvvm::CurrentSimulationDirectory $::osvvm::OutputBaseDirectory $::osvvm::BuildName ]
@@ -643,6 +645,7 @@ variable OsvvmBuildOutputDirectory
643645 }
644646 CreateDirectory $OsvvmBuildOutputDirectory
645647 CopyHtmlThemeFiles ${::osvvm::OsvvmScriptDirectory} ${OsvvmBuildOutputDirectory} $::osvvm::HtmlThemeSubdirectory
648+ # Only run this code once per build
646649 set HaveNotCreatedBuildOutputDirectory " false"
647650 }
648651 } else {
@@ -1236,7 +1239,8 @@ proc simulate {LibraryUnit args} {
12361239 }
12371240 if {!($::osvvm::BuildStarted )} {
12381241 SetInteractiveMode $SavedInteractive ; # Restore original value
1239- Set BuildName " "
1242+ set BuildName " "
1243+ set ::osvvm::HaveNotCreatedBuildOutputDirectory " true"
12401244 }
12411245}
12421246
You can’t perform that action at this time.
0 commit comments