fix deprecation tag in option and reverse warning check

This commit is contained in:
Elliot 2023-11-15 13:02:05 -05:00
parent a3774039f6
commit 67b454286f
2 changed files with 3 additions and 3 deletions

View File

@ -95,8 +95,8 @@ if get_option('tracy_no_crash_handler')
endif
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.')
if not tracy_shared_libs and get_option('tracy_shared_libs')
warning('tracy_shared_libs is set to true, but default_library is set to static. Building static library.')
endif
if tracy_shared_libs

View File

@ -19,5 +19,5 @@ option('tracy_timer_fallback', type : 'boolean', value : false, description : 'U
option('tracy_delayed_init', type : 'boolean', value : false, description : 'Enable delayed initialization of the library (init on first call)')
option('tracy_manual_lifetime', type : 'boolean', value : false, description : 'Enable the manual lifetime management of the profile')
option('tracy_fibers', type : 'boolean', value : false, description : 'Enable fibers support')
option('tracy_shared_libs', type : 'boolean', value : false, description : 'Builds Tracy as a shared object', deprecated : 'use default_library=shared instead')
option('tracy_shared_libs', type : 'boolean', value : false, description : 'Builds Tracy as a shared object', deprecated : 'default_library')
option('tracy_no_crash_handler', type : 'boolean', value : false, description : 'Disable crash handling')