1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Merge pull request #13253 from xokdvium/pkgconf-c

export/meson: Don't require `-std=c++2a` for -c libraries in `.pc` files
This commit is contained in:
Jörg Thalheim 2025-05-23 15:17:32 +02:00 committed by GitHub
commit 2d20cd8085
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,12 +11,18 @@ endforeach
requires_public += deps_public
extra_pkg_config_variables = get_variable('extra_pkg_config_variables', {})
extra_cflags = []
if not meson.project_name().endswith('-c')
extra_cflags += ['-std=c++2a']
endif
import('pkgconfig').generate(
this_library,
filebase : meson.project_name(),
name : 'Nix',
description : 'Nix Package Manager',
extra_cflags : ['-std=c++2a'],
extra_cflags : extra_cflags,
requires : requires_public,
requires_private : requires_private,
libraries_private : libraries_private,