mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'ps/meson-clar-decls-fix'
Build fix. * ps/meson-clar-decls-fix: meson: ensure correct "clar-decls.h" header is used
This commit is contained in:
@@ -59,6 +59,9 @@ 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, kwargs: test_kwargs)
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
#include "git-compat-util.h"
|
||||
#include "clar/clar.h"
|
||||
#include "clar-decls.h"
|
||||
#include "strbuf.h"
|
||||
|
||||
#ifndef GIT_CLAR_DECLS_H
|
||||
# include "clar-decls.h"
|
||||
#else
|
||||
# include GIT_CLAR_DECLS_H
|
||||
#endif
|
||||
|
||||
#define cl_failf(fmt, ...) do { \
|
||||
char desc[4096]; \
|
||||
snprintf(desc, sizeof(desc), fmt, __VA_ARGS__); \
|
||||
|
||||
Reference in New Issue
Block a user