You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
862 B

  1. --- a/build/meson/meson.build
  2. +++ b/build/meson/meson.build
  3. @@ -22,7 +22,6 @@ project('zstd',
  4. cc = meson.get_compiler('c')
  5. cxx = meson.get_compiler('cpp')
  6. pkgconfig = import('pkgconfig')
  7. -python3 = import('python').find_installation()
  8. windows_mod = import('windows')
  9. host_machine_os = host_machine.system()
  10. @@ -40,8 +39,8 @@ compiler_msvc = 'msvc'
  11. zstd_version = meson.project_version()
  12. zstd_h_file = join_paths(meson.current_source_dir(), '../../lib/zstd.h')
  13. -GetZstdLibraryVersion_py = files('GetZstdLibraryVersion.py')
  14. -r = run_command(python3, GetZstdLibraryVersion_py, zstd_h_file)
  15. +GetZstdLibraryVersion_py = find_program('GetZstdLibraryVersion.py', native : true)
  16. +r = run_command(GetZstdLibraryVersion_py, zstd_h_file)
  17. if r.returncode() == 0
  18. zstd_version = r.stdout().strip()
  19. message('Project version is now: @0@'.format(zstd_version))