From 56c920ce5d65145368e364eb1a679d93d2cf74d1 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Sun, 3 Nov 2024 01:20:36 +0800 Subject: [PATCH] sim/make: fix macos sim:nsh make break, no -mcmodel in clang Will report clang: error: invalid argument 'medium' to -mcmodel= -mcmodel=large will both support clang and gcc. Signed-off-by: buxiasen --- boards/sim/sim/sim/scripts/Make.defs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs index 5e80ac6d0c094..a801858f3ee17 100644 --- a/boards/sim/sim/sim/scripts/Make.defs +++ b/boards/sim/sim/sim/scripts/Make.defs @@ -143,8 +143,8 @@ ifeq ($(CONFIG_SIM_M32),y) ARCHCFLAGS += -m32 ARCHCXXFLAGS += -m32 else - ARCHCFLAGS += -fno-pic -mcmodel=medium - ARCHCXXFLAGS += -fno-pic -mcmodel=medium + ARCHCFLAGS += -fno-pic -mcmodel=large + ARCHCXXFLAGS += -fno-pic -mcmodel=large endif # LLVM style architecture flags