Skip to content

Commit e376442

Browse files
authored
join loongarch64 and riscv64 no-relax
1 parent 804f992 commit e376442

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

clang/lib/Driver/ToolChains/OpenBSD.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,7 @@ void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
161161
if (Nopie || Profiling)
162162
CmdArgs.push_back("-nopie");
163163

164-
if (Triple.isRISCV64()) {
165-
CmdArgs.push_back("-X");
166-
if (Args.hasArg(options::OPT_mno_relax))
167-
CmdArgs.push_back("--no-relax");
168-
}
169-
170-
if (Triple.isLoongArch64()) {
164+
if (Triple.isLoongArch64() || Triple.isRISCV64()) {
171165
CmdArgs.push_back("-X");
172166
if (Args.hasArg(options::OPT_mno_relax))
173167
CmdArgs.push_back("--no-relax");

0 commit comments

Comments
 (0)