Skip to content

Commit 2d875c3

Browse files
committed
Default to the medium code model for the loongarch64-linux-gnu toolchain
1 parent d5eb31c commit 2d875c3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ci/docker/host-x86_64/dist-loongarch64-linux/loongarch64-unknown-linux-gnu.defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CT_ARCH_LOONGARCH=y
77
# CT_DEMULTILIB is not set
88
CT_ARCH_USE_MMU=y
99
CT_ARCH_ARCH="loongarch64"
10+
CT_TARGET_CFLAGS="-mcmodel=medium"
11+
CT_TARGET_LDFLAGS="-mcmodel=medium"
1012
CT_KERNEL_LINUX=y
1113
CT_LINUX_V_5_19=y
1214
CT_GLIBC_V_2_36=y

src/ci/docker/host-x86_64/dist-loongarch64-musl/loongarch64-unknown-linux-musl.defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CT_ARCH_LOONGARCH=y
77
# CT_DEMULTILIB is not set
88
CT_ARCH_USE_MMU=y
99
CT_ARCH_ARCH="loongarch64"
10+
CT_TARGET_CFLAGS="-mcmodel=medium"
11+
CT_TARGET_LDFLAGS="-mcmodel=medium"
1012
CT_KERNEL_LINUX=y
1113
CT_LINUX_V_5_19=y
1214
CT_LIBC_MUSL=y

0 commit comments

Comments
 (0)