chen3feng / blade-build

Blade is a powerful build system from Tencent, supports many mainstream programming languages, such as C/C++, java, scala, python, protobuf...
Other
2.05k stars 497 forks source link

Add compare_version function #1037

Open chen3feng opened 7 months ago

chen3feng commented 7 months ago
def compare_version(a: str, b: str) -> int: ...

compare_version("4.9.4", "5.0") return -1
compare_version("4.9.4", "4.9.4") return 0
compare_version("4.9.0", "4.9") return 0