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

export/meson: Don't require -std=c++2a for -c libraries in .pc files

This commit is contained in:
Sergei Zimmerman 2025-05-23 12:06:59 +00:00
parent 4cc312a6e1
commit d8da8f0cd6
No known key found for this signature in database
GPG key ID: A9B0B557CA632325

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,