From 065eb05e3e73034a873b20093388cba3b7f13954 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 18 Jul 2024 09:02:42 +0200 Subject: 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. --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index b2e2929b..868d8e36 100644 --- a/meson.build +++ b/meson.build @@ -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', -- cgit v1.3