support regen of metadata when TARGET_PLATFORM=NONE