mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
meson: only build the pgo helper binary when -Db_pgo=generate
This is the only time it’s needed. In non-PGO builds, it is completely unnecessary, and we’re only wasting CPU cycles building it. In full PGO builds, with -Db_pgo=use, we get link warnings and/or failures, depending on compiler, since the pgo binary hasn’t been executed.
This commit is contained in:
parent
c6fb10863d
commit
ae6a656f49
1 changed files with 9 additions and 7 deletions
16
meson.build
16
meson.build
|
|
@ -155,13 +155,15 @@ pgolib = static_library(
|
|||
link_with: vtlib,
|
||||
)
|
||||
|
||||
executable(
|
||||
'pgo',
|
||||
'pgo/pgo.c',
|
||||
wl_proto_src + wl_proto_headers,
|
||||
dependencies: [math, threads, libepoll, pixman, wayland_client, fcft, tllist],
|
||||
link_with: pgolib,
|
||||
)
|
||||
if get_option('b_pgo') == 'generate'
|
||||
executable(
|
||||
'pgo',
|
||||
'pgo/pgo.c',
|
||||
wl_proto_src + wl_proto_headers,
|
||||
dependencies: [math, threads, libepoll, pixman, wayland_client, fcft, tllist],
|
||||
link_with: pgolib,
|
||||
)
|
||||
endif
|
||||
|
||||
executable(
|
||||
'foot',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue