diff --git a/environment.py b/environment.py index c813f0ca2..2eb913c8d 100644 --- a/environment.py +++ b/environment.py @@ -1019,7 +1019,7 @@ class Environment(): private_dir = 'meson-private' log_dir = 'meson-logs' coredata_file = os.path.join(private_dir, 'coredata.dat') - version_regex = '\d+(\.\d+)+' + version_regex = '\d+(\.\d+)+(-[a-zA-Z0-9]+)?' def __init__(self, source_dir, build_dir, main_script_file, options): assert(os.path.isabs(main_script_file)) assert(not os.path.islink(main_script_file))