Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1005B

  1. diff -Naur Python-3.8.0-orig/Python/getcompiler.c Python-3.8.0/Python/getcompiler.c
  2. --- Python-3.8.0-orig/Python/getcompiler.c 2019-10-14 16:34:47.000000000 +0300
  3. +++ Python-3.8.0/Python/getcompiler.c 2019-10-22 10:04:17.450288900 +0300
  4. @@ -10,7 +10,22 @@
  5. #if defined(__clang__)
  6. #define COMPILER "\n[Clang " __clang_version__ "]"
  7. #elif defined(__GNUC__)
  8. -#define COMPILER "\n[GCC " __VERSION__ "]"
  9. +/* To not break compatibility with things that determine
  10. + CPU arch by calling get_build_version in msvccompiler.py
  11. + (such as NumPy) add "32 bit" or "64 bit (AMD64)" on Windows
  12. + and also use a space as a separator rather than a newline. */
  13. +#if defined(_WIN32)
  14. +#define COMP_SEP " "
  15. +#if defined(__x86_64__)
  16. +#define ARCH_SUFFIX " 64 bit (AMD64)"
  17. +#else
  18. +#define ARCH_SUFFIX " 32 bit"
  19. +#endif
  20. +#else
  21. +#define COMP_SEP "\n"
  22. +#define ARCH_SUFFIX ""
  23. +#endif
  24. +#define COMPILER COMP_SEP "[GCC " __VERSION__ ARCH_SUFFIX "]"
  25. // Generic fallbacks.
  26. #elif defined(__cplusplus)
  27. #define COMPILER "[C++]"