mirror of
https://github.com/sched-ext/scx.git
synced 2024-12-12 03:34:22 +00:00
00cd15a3ae
Some distro may add their own prefix to the version string of clang, for example in Ubuntu: $ clang --version Ubuntu clang version 17.0.5 (1ubuntu1) ... That triggers the following meson error during the setup phase: meson.build:25:44: ERROR: String '' cannot be converted to int Change the regexp used to evaluate the clang version to avoid this build failure. Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
4 lines
82 B
Bash
Executable File
4 lines
82 B
Bash
Executable File
#!/bin/bash
|
|
|
|
"$1" --version | sed -nr 's/^.*clang version ([\.0-9]*)( .*)?$/\1/p'
|