-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[LoongArch64] add all the coreclr-build-config files #62889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
47d106f
411b59e
7eed4eb
0d7c9e4
2c534c5
6e14d76
359875d
192b095
4e27ea3
73807e4
296c1f1
a4cb4d3
e8ab8e2
624d4b9
560f0a4
21c2bf5
b54fcea
ae9b7af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,9 @@ elseif(TARGET_ARCH_NAME STREQUAL "arm64") | |
| if("$ENV{__DistroRid}" MATCHES "tizen.*") | ||
|
jkotas marked this conversation as resolved.
Outdated
|
||
| set(TIZEN_TOOLCHAIN "aarch64-tizen-linux-gnu/9.2.0") | ||
| endif() | ||
| elseif(TARGET_ARCH_NAME STREQUAL "loongarch64") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes in this file should be reverted per discussion in dotnet/arcade#8271 (comment) If this file needs more changes, they should be submitted via arcade repo
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. |
||
| set(CMAKE_SYSTEM_PROCESSOR loongarch64) | ||
| set(TOOLCHAIN "loongarch64-linux-gnu") | ||
| elseif(TARGET_ARCH_NAME STREQUAL "s390x") | ||
| set(CMAKE_SYSTEM_PROCESSOR s390x) | ||
| set(TOOLCHAIN "s390x-linux-gnu") | ||
|
|
@@ -49,7 +52,7 @@ elseif (ILLUMOS) | |
| set(CMAKE_SYSTEM_PROCESSOR "x86_64") | ||
| set(TOOLCHAIN "x86_64-illumos") | ||
| else() | ||
| message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only armel, arm, arm64, s390x and x86 are supported!") | ||
| message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only armel, arm, arm64, loongarch64, s390x and x86 are supported!") | ||
| endif() | ||
|
|
||
| if(DEFINED ENV{TOOLCHAIN}) | ||
|
|
@@ -177,7 +180,7 @@ endif() | |
|
|
||
| # Specify compile options | ||
|
|
||
| if((TARGET_ARCH_NAME MATCHES "^(arm|armel|arm64|s390x)$" AND NOT "$ENV{__DistroRid}" MATCHES "android.*") OR ILLUMOS) | ||
| if((TARGET_ARCH_NAME MATCHES "^(arm|armel|arm64|s390x|loongarch64)$" AND NOT "$ENV{__DistroRid}" MATCHES "android.*") OR ILLUMOS) | ||
| set(CMAKE_C_COMPILER_TARGET ${TOOLCHAIN}) | ||
| set(CMAKE_CXX_COMPILER_TARGET ${TOOLCHAIN}) | ||
| set(CMAKE_ASM_COMPILER_TARGET ${TOOLCHAIN}) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -197,7 +197,7 @@ usage() | |
| echo "" | ||
| echo "Common Options:" | ||
| echo "" | ||
| echo "BuildArch can be: -arm, -armel, -arm64, -s390x, x64, x86, -wasm" | ||
| echo "BuildArch can be: -arm, -armel, -arm64, -s390x, -loongarch64, x64, x86, -wasm" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Nove this before s390x
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, Thanks. |
||
| echo "BuildType can be: -debug, -checked, -release" | ||
| echo "-os: target OS (defaults to running OS)" | ||
| echo "-bindir: output directory (defaults to $__ProjectRoot/artifacts)" | ||
|
|
@@ -394,6 +394,10 @@ while :; do | |
| __BuildArch=s390x | ||
| ;; | ||
|
|
||
| loongarch64|-loongarch64) | ||
|
jkotas marked this conversation as resolved.
|
||
| __BuildArch=loongarch64 | ||
| ;; | ||
|
|
||
| wasm|-wasm) | ||
| __BuildArch=wasm | ||
| ;; | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,7 @@ function(clr_unknown_arch) | |||||
| elseif(CLR_CROSS_COMPONENTS_BUILD) | ||||||
| message(FATAL_ERROR "Only AMD64, I386 host are supported for linux cross-architecture component. Found: ${CMAKE_SYSTEM_PROCESSOR}") | ||||||
| else() | ||||||
| message(FATAL_ERROR "Only AMD64, ARM64 and ARM are supported. Found: ${CMAKE_SYSTEM_PROCESSOR}") | ||||||
| message(FATAL_ERROR "Only AMD64, ARM64 , LOONGARCH64, and ARM are supported. Found: ${CMAKE_SYSTEM_PROCESSOR}") | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for your review. I will update now. |
||||||
| endif() | ||||||
| endfunction() | ||||||
|
|
||||||
|
|
@@ -94,6 +94,10 @@ function(find_unwind_libs UnwindLibs) | |||||
| find_library(UNWIND_ARCH NAMES unwind-aarch64) | ||||||
| endif() | ||||||
|
|
||||||
| if(CLR_CMAKE_HOST_ARCH_LOONGARCH64) | ||||||
| find_library(UNWIND_ARCH NAMES unwind-loongarch64) | ||||||
| endif() | ||||||
|
|
||||||
| if(CLR_CMAKE_HOST_ARCH_AMD64) | ||||||
| find_library(UNWIND_ARCH NAMES unwind-x86_64) | ||||||
| endif() | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,10 @@ case "$CPUName" in | |
| arch=arm64 | ||
| ;; | ||
|
|
||
| loongarch64) | ||
| arch=loongarch64 | ||
| ;; | ||
|
|
||
| amd64|x86_64) | ||
| arch=x64 | ||
| ;; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.