diff --git a/buildtools/chkincs/meson.build b/buildtools/chkincs/meson.build index f2dadcae18e..04187fa872f 100644 --- a/buildtools/chkincs/meson.build +++ b/buildtools/chkincs/meson.build @@ -12,7 +12,6 @@ gen_c_files = generator(gen_c_file_for_header, arguments: ['@INPUT@', '@OUTPUT@']) cflags = machine_args -cflags += '-DALLOW_EXPERIMENTAL_API' cflags += '-DALLOW_INTERNAL_API' sources = files('main.c') @@ -32,6 +31,14 @@ executable('chkincs', sources, dependencies: deps, install: false) +cflags += '-DALLOW_EXPERIMENTAL_API' + +executable('chkincs-exp', sources, + c_args: cflags, + include_directories: includes, + dependencies: deps, + install: false) + # run tests for c++ builds also if not add_languages('cpp', required: false) subdir_done()