mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: use -Ddevelopment=true to set DEVELOPMENT_BUILD
And also, we use it as #ifdef, so never define it as 0.
This commit is contained in:
@ -90,7 +90,9 @@ if get_option('libunwind')
|
||||
endif
|
||||
|
||||
# Development build setup
|
||||
config_h.set('DEVELOPMENT_BUILD', version_split[1].to_int().is_odd())
|
||||
if get_option('development')
|
||||
config_h.set10('DEVELOPMENT_BUILD', true)
|
||||
endif
|
||||
|
||||
has_use_clockid = cc.has_member('struct perf_event_attr', 'use_clockid', prefix: '#include <linux/perf_event.h>')
|
||||
has_clockid = cc.has_member('struct perf_event_attr', 'clockid', prefix: '#include <linux/perf_event.h>')
|
||||
|
||||
Reference in New Issue
Block a user