Commit e30bb237 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz

build: Add debug/release options

parent 292c1d08
......@@ -7,6 +7,13 @@ project(
default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
if get_option('buildtype').startswith('debug')
add_project_arguments('-DDEBUG=1', language : 'c')
if get_option('buildtype') != 'plain'
add_project_arguments('-fstack-protector-strong', language: 'c')
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
pkgdatadir = join_paths(datadir, meson.project_name())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment