mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 13:30:02 +00:00
gsk: Enable unity builds
Instruct meson to compile all gsk sources in one pass. This lets the compiler inline freely between our sources, and is much nicer than moving functions into the headers as static inlines.
This commit is contained in:
parent
0dd45e8625
commit
2424a51918
@ -232,6 +232,7 @@ libgsk_f16c = static_library('gsk_f16c',
|
||||
)
|
||||
|
||||
libgsk = static_library('gsk',
|
||||
override_options: [ 'unity=on', 'unity_size=10000' ],
|
||||
sources: [
|
||||
gsk_public_sources,
|
||||
gsk_private_sources,
|
||||
@ -246,7 +247,9 @@ libgsk = static_library('gsk',
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gsk"',
|
||||
'-DG_LOG_STRUCTURED=1',
|
||||
] + common_cflags,
|
||||
] + common_cflags + [
|
||||
'-Wno-error=redundant-decls',
|
||||
],
|
||||
link_with: [ libgdk, libgsk_f16c]
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user