scx-upstream/meson-scripts/get_clang_ver
Tejun Heo 6ec509b3b6 build, scx_utils: Misc improvements
- build: Check clang version like scx_utils does.

- scx_utils: Generate rerun-if-env-changed directives.
2023-12-01 10:20:06 -10:00

4 lines
80 B
Bash
Executable File

#!/bin/bash
"$1" --version | sed -nr 's/^clang version ([\.0-9]*)( .*)?$/\1/p'