From 38c1b13d5329c88fb3098110e7ab065734e0f792 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 19 Oct 2009 10:39:52 -0700 Subject: [PATCH] Store global cpp option. --- Cython/Compiler/CmdLine.py | 2 +- Cython/Compiler/Options.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2