arch-3-loong64.patch 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
  2. index e284026..52f9a12 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 66c8e1f..8a8c1eb 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 f0614d0..1438867 100644
  19. --- a/build/gulpfile.vscode.js
  20. +++ b/build/gulpfile.vscode.js
  21. @@ -493,2 +493,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 4f2c8c2..4ea1bd2 100644
  27. --- a/cli/src/update_service.rs
  28. +++ b/cli/src/update_service.rs
  29. @@ -178,2 +178,3 @@ pub enum Platform {
  30. LinuxRISCV64,
  31. + LinuxLoong64,
  32. DarwinX64,
  33. @@ -198,2 +199,3 @@ impl Platform {
  34. Platform::LinuxRISCV64 => "riscv64",
  35. + Platform::LinuxLoong64 => "loong64",
  36. Platform::DarwinX64 => "x64",
  37. @@ -219,2 +221,3 @@ impl Platform {
  38. Platform::LinuxRISCV64 => "linux",
  39. + Platform::LinuxLoong64 => "linux",
  40. Platform::DarwinX64 => "darwin",
  41. @@ -251,2 +254,4 @@ impl Platform {
  42. Some(Platform::LinuxRISCV64)
  43. + } else if cfg!(all(target_os = "linux", target_arch = "loongarch64")) {
  44. + Some(Platform::LinuxLoong64)
  45. } else if cfg!(all(target_os = "macos", target_arch = "x86_64")) {
  46. @@ -280,2 +285,3 @@ impl fmt::Display for Platform {
  47. Platform::LinuxRISCV64 => "LinuxRISCV64",
  48. + Platform::LinuxLoong64 => "LinuxLoong64",
  49. Platform::DarwinX64 => "DarwinX64",
  50. diff --git a/cli/src/util/prereqs.rs b/cli/src/util/prereqs.rs
  51. index 1a37552..ff191a1 100644
  52. --- a/cli/src/util/prereqs.rs
  53. +++ b/cli/src/util/prereqs.rs
  54. @@ -86,2 +86,4 @@ impl PreReqChecker {
  55. Platform::LinuxRISCV64
  56. + } else if cfg!(target_arch = "loongarch64") {
  57. + Platform::LinuxLoong64
  58. } else {
  59. diff --git a/resources/server/bin/helpers/check-requirements-linux.sh b/resources/server/bin/helpers/check-requirements-linux.sh
  60. index b18e402..0b7aa4e 100644
  61. --- a/resources/server/bin/helpers/check-requirements-linux.sh
  62. +++ b/resources/server/bin/helpers/check-requirements-linux.sh
  63. @@ -57,2 +57,3 @@ case $ARCH in
  64. riscv64) LDCONFIG_ARCH="RISC-V";;
  65. + loongarch64) LDCONFIG_ARCH="double-float";;
  66. esac
  67. diff --git a/src/vs/platform/extensionManagement/common/extensionManagement.ts b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  68. index be95b04..1a0decd 100644
  69. --- a/src/vs/platform/extensionManagement/common/extensionManagement.ts
  70. +++ b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  71. @@ -46,2 +46,3 @@ export function TargetPlatformToString(targetPlatform: TargetPlatform) {
  72. case TargetPlatform.LINUX_RISCV64: return 'Linux RISC-V 64';
  73. + case TargetPlatform.LINUX_LOONG64: return 'Linux Loong64';
  74. @@ -71,2 +72,3 @@ export function toTargetPlatform(targetPlatform: string): TargetPlatform {
  75. case TargetPlatform.LINUX_RISCV64: return TargetPlatform.LINUX_RISCV64;
  76. + case TargetPlatform.LINUX_LOONG64: return TargetPlatform.LINUX_LOONG64;
  77. @@ -112,2 +114,5 @@ export function getTargetPlatform(platform: Platform | 'alpine', arch: string |
  78. }
  79. + if (arch === 'loong64') {
  80. + return TargetPlatform.LINUX_LOONG64;
  81. + }
  82. return TargetPlatform.UNKNOWN;
  83. diff --git a/src/vs/platform/extensions/common/extensions.ts b/src/vs/platform/extensions/common/extensions.ts
  84. index 10152de..3eb0412 100644
  85. --- a/src/vs/platform/extensions/common/extensions.ts
  86. +++ b/src/vs/platform/extensions/common/extensions.ts
  87. @@ -321,2 +321,3 @@ export const enum TargetPlatform {
  88. LINUX_RISCV64 = 'linux-riscv64',
  89. + LINUX_LOONG64 = 'linux-loong64',