mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #10655: Fix the build on PowerPC on Linux with GCC when building with
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC support now looks for "__powerpc__" as well as "__ppc__": the latter seems to only be present on OS X; the former is the correct one for Linux with GCC.
This commit is contained in:
parent
ecbb8dc17a
commit
f1397ad399
2 changed files with 10 additions and 4 deletions
|
@ -26,10 +26,11 @@
|
|||
|
||||
typedef unsigned long long uint64;
|
||||
|
||||
#if defined(__ppc__) /* <- Don't know if this is the correct symbol; this
|
||||
section should work for GCC on any PowerPC
|
||||
platform, irrespective of OS.
|
||||
POWER? Who knows :-) */
|
||||
/* PowerPC suppport.
|
||||
"__ppc__" appears to be the preprocessor definition to detect on OS X, whereas
|
||||
"__powerpc__" appears to be the correct one for Linux with GCC
|
||||
*/
|
||||
#if defined(__ppc__) || defined (__powerpc__)
|
||||
|
||||
#define READ_TIMESTAMP(var) ppc_getcounter(&var)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue