Create build_detect_platform