Merge remote-tracking branch 'oe_21/master' into vuplus-3.0-next
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-devtools / python / python-native / 04-default-is-optimized.patch
1 Upstream-Status: Inappropriate [embedded specific]
2
3 # When compiling for an embedded system, we need every bit of
4 # performance we can get. default to optimized with the option
5 # of opt-out.
6 # Signed-Off: Michael 'Mickey' Lauer <mickey@vanille-media.de>
7
8 Index: Python-2.6.1/Python/compile.c
9 ===================================================================
10 --- Python-2.6.1.orig/Python/compile.c
11 +++ Python-2.6.1/Python/compile.c
12 @@ -32,7 +32,7 @@
13  #include "symtable.h"
14  #include "opcode.h"
15  
16 -int Py_OptimizeFlag = 0;
17 +int Py_OptimizeFlag = 1;
18  
19  #define DEFAULT_BLOCK_SIZE 16
20  #define DEFAULT_BLOCKS 8