From a3774039f61741049c69e174f6bcc0545fce1249 Mon Sep 17 00:00:00 2001 From: Elliot <35050275+apache-hb@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:56:17 -0500 Subject: [PATCH] warn when tracy_shared_libs and default_library mismatch --- meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 719673e6..8940364f 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('tracy', ['cpp'], version: '0.10.0', meson_version: '>=0.54.0') +project('tracy', ['cpp'], version: '0.10.0', meson_version: '>=0.63.0') # internal compiler flags tracy_compile_args = [] @@ -94,7 +94,11 @@ if get_option('tracy_no_crash_handler') tracy_common_args += ['-DTRACY_NO_CRASH_HANDLER'] endif -tracy_shared_libs = get_option('default_library') == 'shared' or get_option('tracy_shared_libs') +tracy_shared_libs = get_option('default_library') == 'shared' +if tracy_shared_libs and not get_option('tracy_shared_libs') + warning('tracy_shared_libs is set to false, but default_library is set to shared. Building shared library.') +endif + if tracy_shared_libs tracy_compile_args += ['-DTRACY_EXPORTS'] endif