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
8fc68f38
Commit
8fc68f38
authored
Aug 15, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed compiler directive option from -O to -X
parent
8761bba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+3
-3
No files found.
Cython/Compiler/CmdLine.py
View file @
8fc68f38
...
@@ -38,7 +38,7 @@ Options:
...
@@ -38,7 +38,7 @@ Options:
-a, --annotate Produce a colorized HTML version of the source.
-a, --annotate Produce a colorized HTML version of the source.
--convert-range Convert for loops using range() function to for...from loops.
--convert-range Convert for loops using range() function to for...from loops.
--cplus Output a c++ rather than c file.
--cplus Output a c++ rather than c file.
-
O, --option <name>=<value>[,<name=value,...] Overrides an optimization/code generation option
-
X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive
"""
"""
#The following experimental options are supported only on MacOSX:
#The following experimental options are supported only on MacOSX:
# -C, --compile Compile generated .c file to .o file
# -C, --compile Compile generated .c file to .o file
...
@@ -114,11 +114,11 @@ def parse_command_line(args):
...
@@ -114,11 +114,11 @@ def parse_command_line(args):
Options
.
annotate
=
True
Options
.
annotate
=
True
elif
option
==
"--convert-range"
:
elif
option
==
"--convert-range"
:
Options
.
convert_range
=
True
Options
.
convert_range
=
True
elif
option
in
(
"-
O"
,
"--option
"
):
elif
option
in
(
"-
X"
,
"--directive
"
):
try
:
try
:
options
.
pragma_overrides
=
Options
.
parse_option_list
(
pop_arg
())
options
.
pragma_overrides
=
Options
.
parse_option_list
(
pop_arg
())
except
ValueError
,
e
:
except
ValueError
,
e
:
sys
.
stderr
.
write
(
"Error in
option string
: %s
\
n
"
%
e
.
message
)
sys
.
stderr
.
write
(
"Error in
compiler directive
: %s
\
n
"
%
e
.
message
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
else
:
else
:
bad_usage
()
bad_usage
()
...
...
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