Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libxfce4util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
libxfce4util
Commits
21414e19
Commit
21414e19
authored
1 month ago
by
Gaël Bonithon
Browse files
Options
Downloads
Patches
Plain Diff
meson-build: Update debug/optimization flag management
Related:
xfce4-dev-tools!145
parent
6df744bc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#34527
passed
1 month ago
Stage: build
Stage: analysis
Stage: distcheck
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
meson.build
+9
-12
9 additions, 12 deletions
meson.build
with
9 additions
and
12 deletions
meson.build
+
9
−
12
View file @
21414e19
...
...
@@ -4,7 +4,7 @@ project(
version
:
'4.20.0-dev'
,
license
:
'GPL-2'
,
meson_version
:
'>= 0.54.0'
,
default_options
:
[
'c_std=gnu11'
,
'buildtype=debugoptimized'
,
'warning_level=2'
,
'b_ndebug=if-release'
]
default_options
:
[
'c_std=gnu11'
,
'buildtype=debugoptimized'
,
'warning_level=2'
]
)
libxfce4util_soversion
=
'7.0.0'
libxfce4util_soversion_major
=
libxfce4util_soversion
.
split
(
'.'
)[
0
]
...
...
@@ -124,18 +124,15 @@ extra_cflags_check = [
'-Wno-error=deprecated-declarations'
,
]
buildtype
=
get_option
(
'
buildtype
'
)
if
buildtype
==
'debug'
or
buildtype
==
'debugoptimized'
optimization
=
get_option
(
'
optimization
'
)
if
get_option
(
'debug'
)
and
optimization
in
[
'0'
,
'g'
]
extra_cflags_check
+=
'-fstack-protector-strong'
extra_cflags
+=
'-DDEBUG=1'
if
buildtype
==
'debug'
extra_cflags
+=
[
'-DG_ENABLE_DEBUG'
,
'-DDEBUG_TRACE=1'
,
]
endif
elif
buildtype
==
'minsize'
extra_cflags
+=
[
'-DDEBUG=1'
,
'-DDEBUG_TRACE=1'
,
'-DG_ENABLE_DEBUG'
,
]
elif
optimization
in
[
'3'
,
'minsize'
]
extra_cflags
+=
[
'-DNDEBUG'
,
'-DG_DISABLE_CAST_CHECKS'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment