From 5a85a99affe9cfa5ee960616d2720bad4fbff138 Mon Sep 17 00:00:00 2001 From: xjd Date: Tue, 6 Feb 2024 12:26:30 +0800 Subject: [PATCH] Disable builtin memset --- Makefile.clang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.clang b/Makefile.clang index a9cac1d..3c94c1a 100644 --- a/Makefile.clang +++ b/Makefile.clang @@ -3,7 +3,7 @@ LD := ld.lld-16 OBJCOPY := llvm-objcopy-16 CFLAGS := \ --target=riscv64 -march=rv64imc_zba_zbb_zbc_zbs \ - -fPIC -O2 -fno-builtin-printf -fno-builtin-memcmp -nostdinc -nostdlib -fvisibility=hidden -fdata-sections -ffunction-sections \ + -fPIC -O3 -fno-builtin-printf -fno-builtin-memcmp -fno-builtin-memset -nostdinc -nostdlib -fvisibility=hidden -fdata-sections -ffunction-sections \ -I deps/secp256k1/src -I deps/secp256k1 -I deps/ckb-c-std-lib -I deps/ckb-c-std-lib/libc -I deps/ckb-c-std-lib/molecule -I c -I build \ -Wall -Wno-nonnull -Wno-unused-function -g LDFLAGS := -nostdlib -static