equal
deleted
inserted
replaced
1 This changes Python's standard profile-guided build target to work with |
1 This changes Python's standard profile-guided build target to work with |
2 Studio instead of gcc. The unfortunate repetition of options seen below |
2 Studio instead of gcc. The unfortunate repetition of options seen below |
3 is a workaround for build peculiarities and to meet Studio's requirement |
3 is a workaround for build peculiarities and to meet Studio's requirement |
4 that the profiling options be used at all steps of the build -- not just |
4 that the profiling options be used at all steps of the build -- not just |
5 compilation. |
5 compilation. As it is Solaris-specific, it is not suitable for upstream. |
6 --- Python-2.7.6/Makefile.pre.in.~2~ 2014-05-14 13:29:26.322546831 -0700 |
6 |
7 +++ Python-2.7.6/Makefile.pre.in 2014-05-14 13:32:23.601766216 -0700 |
7 --- Python-2.7.7/Makefile.pre.in.~2~ 2014-06-02 10:52:35.405443508 -0700 |
|
8 +++ Python-2.7.7/Makefile.pre.in 2014-06-02 10:52:35.532782735 -0700 |
8 @@ -413,28 +413,37 @@ |
9 @@ -413,28 +413,37 @@ |
9 profile-opt: |
10 profile-opt: |
10 @echo "Building with support for profile generation:" |
11 @echo "Building with support for profile generation:" |
11 $(MAKE) clean |
12 $(MAKE) clean |
12 + $(MAKE) profile-removal |
13 + $(MAKE) profile-removal |
46 + LDFLAGS="$(LDFLAGS) -xprofile=tcov" \ |
47 + LDFLAGS="$(LDFLAGS) -xprofile=tcov" \ |
47 + BLDSHARED="$(BLDSHARED) -xprofile=tcov" |
48 + BLDSHARED="$(BLDSHARED) -xprofile=tcov" |
48 |
49 |
49 |
50 |
50 # Build the interpreter |
51 # Build the interpreter |
51 @@ -1293,7 +1302,7 @@ |
52 @@ -1297,7 +1306,7 @@ |
52 -rm -f Lib/lib2to3/*Grammar*.pickle |
53 -rm -f Lib/lib2to3/*Grammar*.pickle |
53 |
54 |
54 profile-removal: |
55 profile-removal: |
55 - find . -name '*.gc??' -exec rm -f {} ';' |
56 - find . -name '*.gc??' -exec rm -f {} ';' |
56 + find . -name '.profile' -exec rm -rf {} ';' |
57 + find . -name '.profile' -exec rm -rf {} ';' |