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.

51 lines
1.5 KiB

  1. Index: boinc-client_release-7.16-7.16.6/client/cs_platforms.cpp
  2. ===================================================================
  3. --- boinc-client_release-7.16-7.16.6.orig/client/cs_platforms.cpp
  4. +++ boinc-client_release-7.16-7.16.6/client/cs_platforms.cpp
  5. @@ -76,6 +76,21 @@ void CLIENT_STATE::add_platform(const ch
  6. //
  7. void CLIENT_STATE::detect_platforms() {
  8. +// if specified - use it
  9. +#ifdef HOSTTYPE
  10. + add_platform(HOSTTYPE);
  11. +#endif
  12. +
  13. +// if specified - use it
  14. +#ifdef HOSTTYPEALT
  15. + add_platform(HOSTTYPEALT);
  16. +#endif
  17. +
  18. +// if both the hosttype and its alternative are specified,
  19. +// there is no need to look further and one should go directly
  20. +// to the inspection of the cc_config.xml data
  21. +#if !defined(HOSTTYPE) || !defined(HOSTTYPEALT)
  22. +
  23. #if defined(_WIN32) && !defined(__CYGWIN32__)
  24. #if defined(_WIN64) && defined(_M_X64)
  25. add_platform("windows_x86_64");
  26. @@ -206,15 +221,6 @@ void CLIENT_STATE::detect_platforms() {
  27. add_platform("i686-pc-linux-gnu");
  28. }
  29. - if (!(support64 || support32)) {
  30. - // Something went wrong. Assume HOSTTYPE and HOSTTYPEALT
  31. - // are correct
  32. - add_platform(HOSTTYPE);
  33. -#ifdef HOSTTYPEALT
  34. - add_platform(HOSTTYPEALT);
  35. -#endif
  36. - }
  37. -
  38. #elif defined(sun)
  39. // Check if we can run 64-bit binaries...
  40. // this assumes there isn't a 64-bit only solaris. (Every 64-bit solaris can run 32 bit binaries)
  41. @@ -290,6 +296,8 @@ void CLIENT_STATE::detect_platforms() {
  42. #endif
  43. #endif
  44. +
  45. +#endif
  46. if (cc_config.no_alt_platform) {
  47. PLATFORM p = platforms[0];