meson: increased min version to 0.47 and added check flag on run_command.
This commit is contained in:
+3
-2
@@ -2,7 +2,7 @@ project('lite-xl',
|
|||||||
['c'],
|
['c'],
|
||||||
version : '2.0.5',
|
version : '2.0.5',
|
||||||
license : 'MIT',
|
license : 'MIT',
|
||||||
meson_version : '>= 0.42',
|
meson_version : '>= 0.47',
|
||||||
default_options : [
|
default_options : [
|
||||||
'c_std=gnu11',
|
'c_std=gnu11',
|
||||||
'wrap_mode=nofallback'
|
'wrap_mode=nofallback'
|
||||||
@@ -19,7 +19,8 @@ if get_option('buildtype') != 'release'
|
|||||||
|
|
||||||
if git_command.found()
|
if git_command.found()
|
||||||
git_commit = run_command(
|
git_commit = run_command(
|
||||||
[git_command, 'rev-parse', 'HEAD']
|
[git_command, 'rev-parse', 'HEAD'],
|
||||||
|
check : false
|
||||||
).stdout().strip()
|
).stdout().strip()
|
||||||
|
|
||||||
if git_commit != ''
|
if git_commit != ''
|
||||||
|
|||||||
Reference in New Issue
Block a user