summaryrefslogtreecommitdiff
path: root/Cython/Compiler/CmdLine.py
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Compiler/CmdLine.py')
-rw-r--r--Cython/Compiler/CmdLine.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py
index 9e2f8beb0..470fe6bd4 100644
--- a/Cython/Compiler/CmdLine.py
+++ b/Cython/Compiler/CmdLine.py
@@ -53,6 +53,7 @@ Options:
--module-name Fully qualified module name. If not given, it is deduced from the
import path if source file is in a package, or equals the
filename otherwise.
+ -M, --depfile Produce depfiles for the sources
"""
@@ -66,7 +67,6 @@ def bad_usage():
sys.stderr.write(usage)
sys.exit(1)
-
def parse_command_line(args):
from .Main import CompilationOptions, default_options
@@ -195,6 +195,8 @@ def parse_command_line(args):
sys.exit(1)
elif option == "--module-name":
options.module_name = pop_value()
+ elif option in ('-M', '--depfile'):
+ options.depfile = True
elif option.startswith('--debug'):
option = option[2:].replace('-', '_')
from . import DebugFlags
@@ -236,4 +238,3 @@ def parse_command_line(args):
"cython: Only one source file allowed when using --module-name\n")
sys.exit(1)
return options, sources
-