cachelab fixed

This commit is contained in:
2025-04-25 08:29:08 +08:00
parent 44051e5098
commit 421a8ac1a4
3 changed files with 9 additions and 10 deletions

View File

@@ -9,7 +9,9 @@ LDFLAGS +=
LDLIBS += -lzstd
CPPFLAGS := -O3 -Wall -Wextra -Winline -Winit-self -Wno-sequence-point\
CPPFLAGS := -Ofast -Wall -Wextra -Winit-self \
-Wno-unused-function -fPIC -W -Wcast-qual -Wpointer-arith -Icbsl/include
#CPPFLAGS := -O3 -Wall -Wextra -Winline -Winit-self -Wno-sequence-point\
-Wno-unused-function -Wno-inline -fPIC -W -Wcast-qual -Wpointer-arith -Icbsl/include
#CPPFLAGS := -g
@@ -20,7 +22,7 @@ objects = Cache.o CacheHelper.o getopt.o cbsl/src/buffer.o cbsl/src/file.o cbsl/
all: $(PROGRAMS)
Cache : $(objects)
gcc $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
icpx $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
rm -f $(objects)
clean: