| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | # |
| 4 | # Usage: $ ./rustc-llvm-version.sh rustc |
| 5 | # |
| 6 | # Print the LLVM version that the Rust compiler uses in a 6 digit form. |
| 7 | |
| 8 | # Convert the version string x.y.z to a canonical up-to-6-digits form. |
| 9 | |
| 10 | { |
| 11 | IFS=. |
| 12 | |
| 13 | |
| 14 | } |
| 15 | |
| 16 | if ; then |
| 17 | |
| 18 | |
| 19 | else |
| 20 | |
| 21 | |
| 22 | fi |