File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ model {
58
58
cppCompiler. executable = ' aarch64-linux-gnu-g++'
59
59
linker. executable = ' aarch64-linux-gnu-g++'
60
60
}
61
+ target(" riscv64" ) {
62
+ cppCompiler. executable = ' riscv64-openEuler-linux-g++'
63
+ linker. executable = ' riscv64-openEuler-linux-g++'
64
+ }
61
65
target(" s390_64" ) {
62
66
cppCompiler. executable = ' s390x-linux-gnu-g++'
63
67
linker. executable = ' s390x-linux-gnu-g++'
@@ -74,6 +78,7 @@ model {
74
78
x86_64 { architecture " x86_64" }
75
79
ppcle_64 { architecture " ppcle_64" }
76
80
aarch_64 { architecture " aarch_64" }
81
+ riscv64 { architecture " riscv64" }
77
82
s390_64 { architecture " s390_64" }
78
83
loongarch_64 { architecture " loongarch_64" }
79
84
}
@@ -85,6 +90,7 @@ model {
85
90
' x86_64' ,
86
91
' ppcle_64' ,
87
92
' aarch_64' ,
93
+ ' riscv64' ,
88
94
' s390_64' ,
89
95
' loongarch_64'
90
96
]) {
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ checkArch ()
61
61
assertEq " $format " " elf64-x86-64" $LINENO
62
62
elif [[ " $ARCH " == aarch_64 ]]; then
63
63
assertEq " $format " " elf64-little" $LINENO
64
+ elif [[ " $ARCH " == riscv64 ]]; then
65
+ assertEq " $format " " elf64-littleriscv" $LINENO
64
66
elif [[ " $ARCH " == loongarch_64 ]]; then
65
67
echo $format
66
68
assertEq " $format " " elf64-loongarch" $LINENO
@@ -121,6 +123,9 @@ checkDependencies ()
121
123
white_list=" ${white_list} \|libm\.so\.6"
122
124
elif [[ " $ARCH " == aarch_64 ]]; then
123
125
white_list=" ${white_list} \|ld-linux-aarch64\.so\.1"
126
+ elif [[ " $ARCH " == riscv64 ]]; then
127
+ dump_cmd=' riscv64-linux-gnu-objdump -x ' " $1 " ' |grep "NEEDED"'
128
+ white_list=" libatomic\.so\.1\|libm\.so\.6\|libc\.so\.6\|ld-linux-riscv64-lp64d\.so\.1"
124
129
fi
125
130
elif [[ " $OS " == osx ]]; then
126
131
dump_cmd=' otool -L ' " $1 " ' | fgrep dylib'
You can’t perform that action at this time.
0 commit comments