For second-time build, let build_type be inferred from CMakeCache.txt.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23323
Test Plan: Imported from OSS
Differential Revision: D16517621
Pulled By: ezyang
fbshipit-source-id: 22984df214d01246a7868980e148936698940ea8