Store global cpp option.
authorRobert Bradshaw <robertwb@math.washington.edu>
Mon, 19 Oct 2009 17:39:52 +0000 (10:39 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Mon, 19 Oct 2009 17:39:52 +0000 (10:39 -0700)
Cython/Compiler/CmdLine.py
Cython/Compiler/Options.py

index d7b2f23a04936216a614241369596fdf904c6100..8104e9318727f628d155428520bb337ec3143e72 100644 (file)
@@ -89,7 +89,7 @@ def parse_command_line(args):
                 options.c_only = 0
                 options.obj_only = 0
             elif option in ("-+", "--cplus"):
-                options.cplus = 1
+                Options.cplus = options.cplus = 1
             elif option == "--embed":
                 Options.embed = True
             elif option.startswith("-I"):
index a5d70fd58ae302c2c4e6afb1b60cb86b02fede16..29fdbae2854017ca8c051677f3484ef3aa640793 100644 (file)
@@ -6,6 +6,7 @@ cache_builtins = 1  #  Perform lookups on builtin names only once
 
 embed_pos_in_docstring = 0
 gcc_branch_hints = 1
+cplus = 0
 
 pre_import = None
 docstrings = True