mirror of https://gitlab.freedesktop.org/mesa/mesa
meson: remove source_root() call in main meson.build
source_root function is deprecated in Meson version 0.56.0, so let's use instead a current_source_dir() function, available in all Meson versions. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17974>
This commit is contained in:
parent
91362340f3
commit
db11e300e9
|
@ -1511,14 +1511,14 @@ endif
|
|||
with_ld_version_script = false
|
||||
if cc.links('int main() { return 0; }',
|
||||
args : '-Wl,--version-script=@0@'.format(
|
||||
join_paths(meson.source_root(), 'build-support/conftest.map')),
|
||||
join_paths(meson.current_source_dir(), 'build-support/conftest.map')),
|
||||
name : 'version-script')
|
||||
with_ld_version_script = true
|
||||
endif
|
||||
with_ld_dynamic_list = false
|
||||
if cc.links('int main() { return 0; }',
|
||||
args : '-Wl,--dynamic-list=@0@'.format(
|
||||
join_paths(meson.source_root(), 'build-support/conftest.dyn')),
|
||||
join_paths(meson.current_source_dir(), 'build-support/conftest.dyn')),
|
||||
name : 'dynamic-list')
|
||||
with_ld_dynamic_list = true
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue