Skip to content

Commit

Permalink
sim/make: fix macos sim:nsh make break, no -mcmodel in clang
Browse files Browse the repository at this point in the history
Will report clang: error: invalid argument 'medium' to -mcmodel=
-mcmodel=large will both support clang and gcc.

Signed-off-by: buxiasen <[email protected]>
  • Loading branch information
jasonbu committed Nov 2, 2024
1 parent cc1f381 commit 2200c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/sim/sim/sim/scripts/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2200c07

Please sign in to comment.