aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-18 07:02:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-18 07:02:42 +0000
commit065eb05e3e73034a873b20093388cba3b7f13954 (patch)
tree8081e683e657b5a68dc12d60621e390e8e0c3d44 /meson.build
parentlog: respect the NO_COLOR environment variable (diff)
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.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
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',