build_detect_platform