Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
0718018a
Commit
0718018a
authored
Sep 11, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Command line option for debug flags.
parent
3efa38a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+9
-1
Cython/Compiler/DebugFlags.py
Cython/Compiler/DebugFlags.py
+2
-0
No files found.
Cython/Compiler/CmdLine.py
View file @
0718018a
...
...
@@ -125,9 +125,17 @@ def parse_command_line(args):
except
ValueError
,
e
:
sys
.
stderr
.
write
(
"Error in compiler directive: %s
\
n
"
%
e
.
args
[
0
])
sys
.
exit
(
1
)
elif
option
.
startswith
(
'--debug'
):
option
=
option
[
2
:].
replace
(
'-'
,
'_'
)
import
DebugFlags
if
option
in
dir
(
DebugFlags
):
setattr
(
DebugFlags
,
option
,
True
)
else
:
sys
.
stderr
.
write
(
"Unknown compiler
flag: %s
\
n
"
%
option
)
sys
.
stderr
.
write
(
"Unknown debug
flag: %s
\
n
"
%
option
)
bad_usage
()
else
:
sys
.
stderr
.
write
(
"Unknown compiler flag: %s
\
n
"
%
option
)
sys
.
exit
(
1
)
else
:
arg
=
pop_arg
()
if
arg
.
endswith
(
".pyx"
):
...
...
Cython/Compiler/DebugFlags.py
View file @
0718018a
# Can be enabled at the command line with --debug-xxx.
debug_disposal_code
=
0
debug_temp_alloc
=
0
debug_coercion
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment