Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-dev-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-dev-tools
Commits
31bfefb9
Commit
31bfefb9
authored
5 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
header_clean: build both release and debug when cleaning headers
parent
3aa057b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils_maintenance/header_clean.py
+21
-2
21 additions, 2 deletions
utils_maintenance/header_clean.py
with
21 additions
and
2 deletions
utils_maintenance/header_clean.py
+
21
−
2
View file @
31bfefb9
...
...
@@ -261,6 +261,17 @@ def wash_source_include(arg_group):
re_c
=
re
.
compile
(
r
"
\s*#\s*include\s+\"([a-zA-Z0-9_\-\.]+)\"
"
)
# Make multiple configurations (debug/non-debug).
build_args_all
=
[
build_args
]
build_args_other
=
re
.
sub
(
"
($|
\\
s)(-DNDEBUG)
\\
b
"
,
"
\\
1-DDEBUG
"
,
build_args
)
if
build_args_other
!=
build_args
:
build_args_all
.
append
(
build_args_other
)
build_args_other
=
re
.
sub
(
"
($|
\\
s)(-DDEBUG)
\\
b
"
,
"
\\
1-DNDEBUG
"
,
build_args
)
if
build_args_other
!=
build_args
:
build_args_all
.
append
(
build_args_other
)
del
build_args
,
build_args_other
i
=
0
while
i
<
len
(
lines
):
l
=
lines
[
i
]
...
...
@@ -296,7 +307,11 @@ def wash_source_include(arg_group):
write_lines
(
lines
)
# ensure this fails!, else we may be in an `#if 0` block
ret
=
os
.
system
(
build_args
)
for
build_args
in
build_args_all
:
ret
=
os
.
system
(
build_args
)
if
ret
!=
0
:
break
if
ret
!=
0
:
lines
[
i
]
=
l_new
...
...
@@ -314,7 +329,11 @@ def wash_source_include(arg_group):
del
l_bad_guard
ret
=
os
.
system
(
build_args
+
"
-Wno-unused-macros -Werror=missing-prototypes
"
)
for
build_args
in
build_args_all
:
ret
=
os
.
system
(
build_args
+
"
-Wno-unused-macros -Werror=missing-prototypes
"
)
if
ret
!=
0
:
break
if
ret
!=
0
:
lines
[
i
]
=
l_prev
write_lines
(
lines
)
...
...
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