Fixing install script so that invoking -r alone does not trigger rebuild (#382)

[ROCm/rccl commit: 820a53287f]
This commit is contained in:
Stanley Tsang
2021-06-04 09:46:04 -06:00
committed by GitHub
parent 4b31e521e9
commit b1f41247a2
+12 -1
View File
@@ -123,6 +123,18 @@ check_exit_code( )
fi
}
if [[ "$build_release" == true ]]; then
unit_test_path="./build/release/test/UnitTests"
else
unit_test_path="./build/debug/test/UnitTests"
fi
if ($run_tests) && [[ -f $unit_test_path ]]; then
if [[ "$build_tests" == false ]]; then
clean_build=false
fi
fi
# #################################################
# prep
# #################################################
@@ -135,7 +147,6 @@ if ($clean_build); then
fi
fi
# Create and go to the build directory.
mkdir -p build; cd build