This website requires JavaScript.
Explore
Help
Register
Sign In
JakeHillion
/
scx-upstream
Watch
1
Star
0
Fork
0
You've already forked scx-upstream
mirror of
https://github.com/sched-ext/scx.git
synced
2024-12-01 23:07:11 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
58cbc5361d
scx-upstream
/
meson-scripts
/
get_clang_ver
4 lines
82 B
Plaintext
Raw
Normal View
History
Unescape
Escape
build, scx_utils: Misc improvements - build: Check clang version like scx_utils does. - scx_utils: Generate rerun-if-env-changed directives.
2023-12-01 20:20:06 +00:00
#!/bin/bash
build: properly detect clang version in Ubuntu 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>
2023-12-07 18:24:12 +00:00
"$1" --version | sed -nr 's/^.*clang version ([\.0-9]*)( .*)?$/\1/p'
Reference in New Issue
Copy Permalink