Skip to content

Commit

Permalink
build: use -mstringop-strategy=scalar to replace -mmemcpy-strategy=sc…
Browse files Browse the repository at this point in the history
…alar

Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Jun 11, 2024
1 parent 12f107f commit a487143
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Build/toolchain/nuclei_gnu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ COMMON_FLAGS += -fomit-frame-pointer -fno-shrink-wrap-separate
endif

# TODO Workaround: when v extension is enabled, disable memcpy generated using vector instruction
# upstream just remove this -mmemcpy-strategy option, will remove it later
# upstream just rename this -mmemcpy-strategy option to -mstringop-strategy option now
# see https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=4ae5a7336ac8e1ba57ee1e885b5b76ed86cdbfd5
ifneq ($(findstring v,$(ARCH_EXT)),)
#COMMON_FLAGS += -mmemcpy-strategy=scalar
#COMMON_FLAGS += -mstringop-strategy=scalar
COMMON_FLAGS += -mstringop-strategy=scalar
endif

LDFLAGS += -nodefaultlibs
Expand Down

0 comments on commit a487143

Please sign in to comment.