From: Robert Bradshaw Date: Mon, 19 Oct 2009 17:39:52 +0000 (-0700) Subject: Store global cpp option. X-Git-Tag: 0.13.beta0~353^2~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38c1b13d5329c88fb3098110e7ab065734e0f792;p=cython.git Store global cpp option. --- diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index d7b2f23a..8104e931 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -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"): diff --git a/Cython/Compiler/Options.py b/Cython/Compiler/Options.py index a5d70fd5..29fdbae2 100644 --- a/Cython/Compiler/Options.py +++ b/Cython/Compiler/Options.py @@ -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