aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-01-18 10:59:35 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-01-18 11:07:41 -0800
commitd889989ea1f858759749aef13c0054e5700aa296 (patch)
tree09efb3d2ba6edda88a395e5d47b1206592bc1f46 /mesonbuild/compilers/cpp.py
parente83fb35e411a1b7a863b79c4743b36634b715a27 (diff)
downloadmeson-d889989ea1f858759749aef13c0054e5700aa296.zip
meson-d889989ea1f858759749aef13c0054e5700aa296.tar.gz
meson-d889989ea1f858759749aef13c0054e5700aa296.tar.bz2
dependnecies: generalize version suffix stripping code
This replaces calls to .rstrip('git'), .rstrip('svn') with a regex that takes the leading numbers and dots, and throws away the rest. This also moves the code up to the ConfigToolDepdency level, since these config tools are of various quality and some of them are good, and some are not. This shouldn't affect well behaved tools. This should future proof LLVM against future suffixes (like someone doing something strange like using Mercurial as a VCS).
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
0 files changed, 0 insertions, 0 deletions