From c9541ea574d8078d751863fdeb97f00546012dfe Mon Sep 17 00:00:00 2001 From: Matthew Berends Date: Tue, 2 Jul 2024 14:24:24 -0700 Subject: [PATCH 1/2] Expose compression headers and compress/2 allowing uses to pass options --- {src => include}/lz4b_frame.hrl | 0 src/lz4b_frame.erl | 1 + 2 files changed, 1 insertion(+) rename {src => include}/lz4b_frame.hrl (100%) diff --git a/src/lz4b_frame.hrl b/include/lz4b_frame.hrl similarity index 100% rename from src/lz4b_frame.hrl rename to include/lz4b_frame.hrl diff --git a/src/lz4b_frame.erl b/src/lz4b_frame.erl index de77c57..999bafb 100644 --- a/src/lz4b_frame.erl +++ b/src/lz4b_frame.erl @@ -1,6 +1,7 @@ -module(lz4b_frame). -include("lz4b_frame.hrl"). -export([compress/1, + compress/2, decompress/1, decompress/2, incremental_decompress/3, From b4ebbb9308acbb6823bd0537dcf1f2d8318d2391 Mon Sep 17 00:00:00 2001 From: Matthew Berends Date: Wed, 3 Jul 2024 07:53:29 -0700 Subject: [PATCH 2/2] Remove save-temps from make file --- c_src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_src/Makefile b/c_src/Makefile index f7c06d4..8932e0c 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -69,7 +69,7 @@ $(C_SRC_OUTPUT): $(LZ4_SRC) $(OBJECTS) $(LZ4_SRC): curl -L -f -o $(LZ4_SRC_TAR) $(LZ4_SRC_PACKAGE_LINK) tar zxf $(LZ4_SRC_TAR) - $(MAKE) CFLAGS='-O3 -fPIC -save-temps' -C $(LZ4_SRC) BUILD_STATIC=no + $(MAKE) CFLAGS='-O3 -fPIC' -C $(LZ4_SRC) BUILD_STATIC=no %.o: %.c $(COMPILE_C) $(OUTPUT_OPTION) $<