Merge branch 'vuplus-1.6' of 192.168.102.66:/var/ikseong/repo/openembedded into test_0921
[vuplus_openembedded] / recipes / python / python-2.6.7 / 04-default-is-optimized.patch
1 # when compiling for an embedded system, we need every bit of
2 # performance we can get. default to optimized with the option
3 # of opt-out.
4
5 # Signed-Off: Michael 'Mickey' Lauer <mickey@vanille-media.de>
6
7 Index: Python-2.6.6/Python/compile.c
8 ===================================================================
9 --- Python-2.6.6.orig/Python/compile.c
10 +++ Python-2.6.6/Python/compile.c
11 @@ -32,7 +32,7 @@
12  #include "symtable.h"
13  #include "opcode.h"
14  
15 -int Py_OptimizeFlag = 0;
16 +int Py_OptimizeFlag = 1;
17  
18  #define DEFAULT_BLOCK_SIZE 16
19  #define DEFAULT_BLOCKS 8