mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
meson/pgo: fix PGO build errors with recent meson(?) versions
The back-reference to 'tokenize.c' in the parent directory causes PGO build failures, where gcc can't find the PGO data. Likely due to path/naming issues caused by meson's generated build directories.
This commit is contained in:
parent
36e4435bbf
commit
065eb05e3e
2 changed files with 8 additions and 2 deletions
|
|
@ -252,6 +252,12 @@ pgolib = static_library(
|
|||
link_with: vtlib,
|
||||
)
|
||||
|
||||
tokenize = static_library(
|
||||
'tokenizelib',
|
||||
'tokenize.c',
|
||||
link_with: [common],
|
||||
)
|
||||
|
||||
if get_option('b_pgo') == 'generate'
|
||||
executable(
|
||||
'pgo',
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
config_test = executable(
|
||||
'test-config',
|
||||
'test-config.c', '../tokenize.c',
|
||||
'test-config.c',
|
||||
wl_proto_headers,
|
||||
link_with: [common],
|
||||
link_with: [common, tokenize],
|
||||
dependencies: [pixman, xkb, fontconfig, wayland_client, fcft, tllist])
|
||||
|
||||
test('config', config_test)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue