]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/meson-clar-decls-fix'
authorJunio C Hamano <gitster@pobox.com>
Mon, 4 Aug 2025 15:10:34 +0000 (08:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Aug 2025 15:10:34 +0000 (08:10 -0700)
Build fix.

* ps/meson-clar-decls-fix:
  meson: ensure correct "clar-decls.h" header is used

1  2 
t/meson.build

diff --cc t/meson.build
index 09f3068f98e1cef453bedb1630fd58b47102113c,181b5ec1e97dd9ef4e3329dae49e915e2657cf9b..bbeba1a8d50e1bb2174e9548656a8f10f5c1fd9d
@@@ -59,9 -49,39 +59,12 @@@ clar_sources += custom_target
  
  clar_unit_tests = executable('unit-tests',
    sources: clar_sources + clar_test_suites,
+   c_args: [
+     '-DGIT_CLAR_DECLS_H="' + clar_decls_h.full_path() + '"',
+   ],
    dependencies: [libgit_commonmain],
  )
 -test('unit-tests', clar_unit_tests)
 -
 -unit_test_programs = [
 -  'unit-tests/t-reftable-basics.c',
 -  'unit-tests/t-reftable-block.c',
 -  'unit-tests/t-reftable-merged.c',
 -  'unit-tests/t-reftable-pq.c',
 -  'unit-tests/t-reftable-readwrite.c',
 -  'unit-tests/t-reftable-record.c',
 -  'unit-tests/t-reftable-stack.c',
 -  'unit-tests/t-reftable-table.c',
 -]
 -
 -foreach unit_test_program : unit_test_programs
 -  unit_test_name = fs.stem(unit_test_program)
 -  unit_test = executable(unit_test_name,
 -    sources: [
 -      'unit-tests/test-lib.c',
 -      'unit-tests/lib-reftable.c',
 -      unit_test_program,
 -    ],
 -    dependencies: [libgit_commonmain],
 -  )
 -  test(unit_test_name, unit_test,
 -    workdir: meson.current_source_dir(),
 -    timeout: 0,
 -  )
 -endforeach
 +test('unit-tests', clar_unit_tests, kwargs: test_kwargs)
  
  subdir('helper')