]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: Specify -m32/-m64 explicitly for 32BIT/64BIT
authorHuacai Chen <chenhuacai@loongson.cn>
Mon, 4 May 2026 01:00:01 +0000 (09:00 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 4 May 2026 01:00:01 +0000 (09:00 +0800)
commit5643c6b2c8308b206cb01cbfd0e6ac80f9f1bc9a
tree3b9bf33129ee8b69595ce3b01834d3bf28e1f874
parent4808e5cc4fe1f40c4d690d0ce5df0f413fb02938
LoongArch: Specify -m32/-m64 explicitly for 32BIT/64BIT

Clang/LLVM build needs -m32/-m64 to switch triple variants (i.e. the
--target=xxx parameter). Otherwise we get build errors for CONFIG_32BIT.

GCC doesn't support -m32/-m64 now, but maybe support in future, so use
cc-option to specify them.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604232041.ESJDwVG4-lkp@intel.com/
Suggested-by: Nathan Chancellor <nathan@kernel.org
Tested-by: WANG Rui <wangrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Makefile
arch/loongarch/vdso/Makefile