Build scripts further improved

Now depedency checking is working as intended
This commit is contained in:
2024-03-19 16:57:28 -04:00
parent bf211a8e14
commit cbf47ca21d
2 changed files with 15 additions and 11 deletions

View File

@ -205,7 +205,7 @@ push-location $path_root
}
return $built
}
$sectr_build_code = build-sectr
$script:sectr_build_code = build-sectr
function build-host
{
@ -217,14 +217,13 @@ push-location $path_root
return
}
# TODO(Ed): FIX THIS
# $dependencies_built = $sectr_build_code -eq $module_build_failed
# if ( -not $dependencies_built ) {
# write-host 'Skipping sectr_host build, dependencies failed to build'
# return
# }
$dependencies_built = $script:sectr_build_code -ne $module_build_failed
if ( -not $dependencies_built ) {
write-host 'Skipping sectr_host build, dependencies failed to build'
return
}
$should_build = (check-ModuleForChanges $module_host) || ( $sectr_build_code == $module_built )
$should_build = (check-ModuleForChanges $module_host) -or ( $script:sectr_build_code -eq $module_built )
if ( -not( $should_build)) {
write-host 'Skipping sectr_host build, module up to date'
return