arch-3-loong64.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
  2. index df4fda0c898..ce8f21bbc0e 100644
  3. --- a/build/gulpfile.reh.js
  4. +++ b/build/gulpfile.reh.js
  5. @@ -52,2 +52,3 @@ const BUILD_TARGETS = [
  6. { platform: 'linux', arch: 'riscv64' },
  7. + { platform: 'linux', arch: 'loong64' },
  8. { platform: 'alpine', arch: 'arm64' },
  9. diff --git a/build/gulpfile.scan.js b/build/gulpfile.scan.js
  10. index 0eafadc1fff..3c1d6fb5bfc 100644
  11. --- a/build/gulpfile.scan.js
  12. +++ b/build/gulpfile.scan.js
  13. @@ -28,2 +28,3 @@ const BUILD_TARGETS = [
  14. { platform: 'linux', arch: 'riscv64' },
  15. + { platform: 'linux', arch: 'loong64' },
  16. ];
  17. diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
  18. index b208d700f2c..4be8f93f704 100644
  19. --- a/build/gulpfile.vscode.js
  20. +++ b/build/gulpfile.vscode.js
  21. @@ -489,2 +489,3 @@ const BUILD_TARGETS = [
  22. { platform: 'linux', arch: 'riscv64' },
  23. + { platform: 'linux', arch: 'loong64' },
  24. ];
  25. diff --git a/cli/src/update_service.rs b/cli/src/update_service.rs
  26. index 29228cb4235..c1163029377 100644
  27. --- a/cli/src/update_service.rs
  28. +++ b/cli/src/update_service.rs
  29. @@ -220,2 +220,3 @@ pub enum Platform {
  30. LinuxRISCV64,
  31. + LinuxLoong64,
  32. DarwinX64,
  33. @@ -235,2 +236,3 @@ impl Platform {
  34. Platform::LinuxRISCV64 => Some("linux-riscv64".to_owned()),
  35. + Platform::LinuxLoong64 => Some("linux-loong64".to_owned()),
  36. Platform::DarwinX64 => Some("darwin".to_owned()),
  37. @@ -256,2 +258,3 @@ impl Platform {
  38. Platform::LinuxRISCV64 => "server-linux-riscv64",
  39. + Platform::LinuxLoong64 => "server-linux-loong64",
  40. Platform::DarwinX64 => "server-darwin",
  41. @@ -278,2 +281,3 @@ impl Platform {
  42. Platform::LinuxRISCV64 => "cli-linux-riscv64",
  43. + Platform::LinuxLoong64 => "cli-linux-loong64",
  44. Platform::DarwinX64 => "cli-darwin-x64",
  45. @@ -314,2 +318,4 @@ impl Platform {
  46. Some(Platform::LinuxRISCV64)
  47. + } else if cfg!(all(target_os = "linux", target_arch = "loongarch64")) {
  48. + Some(Platform::LinuxLoong64)
  49. } else if cfg!(all(target_os = "macos", target_arch = "x86_64")) {
  50. @@ -344,2 +350,3 @@ impl fmt::Display for Platform {
  51. Platform::LinuxRISCV64 => "LinuxRISCV64",
  52. + Platform::LinuxLoong64 => "LinuxLoong64",
  53. Platform::DarwinX64 => "DarwinX64",
  54. diff --git a/cli/src/util/prereqs.rs b/cli/src/util/prereqs.rs
  55. index 137a2570130..8f1e20c2aa9 100644
  56. --- a/cli/src/util/prereqs.rs
  57. +++ b/cli/src/util/prereqs.rs
  58. @@ -90,2 +90,4 @@ impl PreReqChecker {
  59. Platform::LinuxRISCV64
  60. + } else if cfg!(target_arch = "loongarch64") {
  61. + Platform::LinuxLoong64
  62. } else {
  63. diff --git a/resources/server/bin/helpers/check-requirements-linux.sh b/resources/server/bin/helpers/check-requirements-linux.sh
  64. index 91c9d203387..7776dbcbc24 100644
  65. --- a/resources/server/bin/helpers/check-requirements-linux.sh
  66. +++ b/resources/server/bin/helpers/check-requirements-linux.sh
  67. @@ -58,2 +58,3 @@ case $ARCH in
  68. riscv64) LDCONFIG_ARCH="RISC-V";;
  69. + loongarch64) LDCONFIG_ARCH="double-float";;
  70. esac
  71. diff --git a/src/vs/platform/extensionManagement/common/extensionManagement.ts b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  72. index 03e78ca3116..8e59218d7ad 100644
  73. --- a/src/vs/platform/extensionManagement/common/extensionManagement.ts
  74. +++ b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  75. @@ -44,2 +44,3 @@ export function TargetPlatformToString(targetPlatform: TargetPlatform) {
  76. case TargetPlatform.LINUX_RISCV64: return 'Linux RISC-V 64';
  77. + case TargetPlatform.LINUX_LOONG64: return 'Linux Loong64';
  78. @@ -69,2 +70,3 @@ export function toTargetPlatform(targetPlatform: string): TargetPlatform {
  79. case TargetPlatform.LINUX_RISCV64: return TargetPlatform.LINUX_RISCV64;
  80. + case TargetPlatform.LINUX_LOONG64: return TargetPlatform.LINUX_LOONG64;
  81. @@ -113,2 +115,5 @@ export function getTargetPlatform(platform: Platform | 'alpine', arch: string |
  82. }
  83. + if (arch === 'loong64') {
  84. + return TargetPlatform.LINUX_LOONG64;
  85. + }
  86. return TargetPlatform.UNKNOWN;
  87. diff --git a/src/vs/platform/extensions/common/extensions.ts b/src/vs/platform/extensions/common/extensions.ts
  88. index a7aa2bb23bf..a4d076ce596 100644
  89. --- a/src/vs/platform/extensions/common/extensions.ts
  90. +++ b/src/vs/platform/extensions/common/extensions.ts
  91. @@ -296,2 +296,3 @@ export const enum TargetPlatform {
  92. LINUX_RISCV64 = 'linux-riscv64',
  93. + LINUX_LOONG64 = 'linux-loong64',