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
Gwenaël Samain
cython
Commits
445b3458
Commit
445b3458
authored
Apr 15, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecation warning for -X switch
parent
1d47a9ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+6
-1
No files found.
Cython/Compiler/CmdLine.py
View file @
445b3458
...
...
@@ -38,8 +38,9 @@ Options:
-a, --annotate Produce a colorized HTML version of the source.
--line-directives Produce #line directives pointing to the .pyx source
--cplus Output a c++ rather than c file.
-
X, -
-directive <name>=<value>[,<name=value,...] Overrides a compiler directive
--directive <name>=<value>[,<name=value,...] Overrides a compiler directive
"""
#The following experimental options are supported only on MacOSX:
# -C, --compile Compile generated .c file to .o file
# -X, --link Link .o file to produce extension module (implies -C)
...
...
@@ -80,6 +81,10 @@ def parse_command_line(args):
elif
option
in
(
"-C"
,
"--compile"
):
options
.
c_only
=
0
elif
option
in
(
"-X"
,
"--link"
):
if
option
==
"-X"
:
print
>>
sys
.
stderr
,
"Deprecation warning: The -X command line switch will be changed to a"
print
>>
sys
.
stderr
,
"shorthand for --directive in Cython 0.12. Please use --link instead."
print
>>
sys
.
stderr
options
.
c_only
=
0
options
.
obj_only
=
0
elif
option
in
(
"-+"
,
"--cplus"
):
...
...
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