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
e81d5671
Commit
e81d5671
authored
9 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
De-duplicate arg removal
parent
9b782658
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_ide/qtcreator/externaltools/qtc_assembler_preview.py
+20
-16
20 additions, 16 deletions
utils_ide/qtcreator/externaltools/qtc_assembler_preview.py
with
20 additions
and
16 deletions
utils_ide/qtcreator/externaltools/qtc_assembler_preview.py
+
20
−
16
View file @
e81d5671
...
...
@@ -109,23 +109,27 @@ def main():
del
arg_split
[:
i
+
1
]
if
COMPILER_ID
==
'
GCC
'
:
# remove arg pairs
for
arg
,
n
in
((
"
-o
"
,
2
),
(
"
-MF
"
,
2
),
(
"
-MT
"
,
2
),
(
"
-MMD
"
,
1
)):
if
arg
in
arg_split
:
i
=
arg_split
.
index
(
arg
)
del
arg_split
[
i
:
i
+
n
]
# --- Switch debug for optimized ---
for
arg
,
n
in
((
"
-O0
"
,
1
),
(
re
.
compile
(
r
"
\-g\d*
"
),
1
),
(
re
.
compile
(
r
"
\-ggdb\d*
"
),
1
),
(
"
-fno-inline
"
,
1
),
(
"
-fno-builtin
"
,
1
),
(
"
-fno-nonansi-builtins
"
,
1
),
(
"
-fno-common
"
,
1
),
(
re
.
compile
(
r
"
\-fsanitize=[^\s]+
"
),
1
),
(
"
-DDEBUG
"
,
1
),
(
"
-D_DEBUG
"
,
1
),
):
for
arg
,
n
in
(
# regular flags which prevent asm output
(
"
-o
"
,
2
),
(
"
-MF
"
,
2
),
(
"
-MT
"
,
2
),
(
"
-MMD
"
,
1
),
# debug flags
(
"
-O0
"
,
1
),
(
re
.
compile
(
r
"
\-g\d*
"
),
1
),
(
re
.
compile
(
r
"
\-ggdb\d*
"
),
1
),
(
"
-fno-inline
"
,
1
),
(
"
-fno-builtin
"
,
1
),
(
"
-fno-nonansi-builtins
"
,
1
),
(
"
-fno-common
"
,
1
),
(
"
-DDEBUG
"
,
1
),
(
"
-D_DEBUG
"
,
1
),
# asan flags
(
re
.
compile
(
r
"
\-fsanitize=.*
"
),
1
),
):
if
isinstance
(
arg
,
str
):
# exact string compare
while
arg
in
arg_split
:
...
...
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