Skip to content

Commit

Permalink
Merge branch 'main' into scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
taniabogatsch committed Sep 23, 2024
2 parents 7906697 + a9134d6 commit 847098b
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 102 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ duckdb:
rm -rf duckdb
git clone -b ${DUCKDB_BRANCH} --depth 1 ${DUCKDB_REPO}

DUCKDB_COMMON_BUILD_FLAGS := BUILD_SHELL=0 BUILD_UNITTESTS=0 DUCKDB_PLATFORM=any
DUCKDB_COMMON_BUILD_FLAGS := BUILD_SHELL=0 BUILD_UNITTESTS=0 DUCKDB_PLATFORM=any ENABLE_EXTENSION_AUTOLOADING=1 ENABLE_EXTENSION_AUTOINSTALL=1 BUILD_EXTENSIONS="json"

.PHONY: deps.darwin.amd64
deps.darwin.amd64: duckdb
if [ "$(shell uname -s | tr '[:upper:]' '[:lower:]')" != "darwin" ]; then echo "Error: must run build on darwin"; false; fi
mkdir -p deps/darwin_amd64

cd duckdb && \
CFLAGS="-target x86_64-apple-macos11 -O3" CXXFLAGS="-target x86_64-apple-macos11 -O3" ${DUCKDB_COMMON_BUILD_FLAGS} make bundle-library -j 2
Expand All @@ -38,6 +39,7 @@ deps.darwin.amd64: duckdb
.PHONY: deps.darwin.arm64
deps.darwin.arm64: duckdb
if [ "$(shell uname -s | tr '[:upper:]' '[:lower:]')" != "darwin" ]; then echo "Error: must run build on darwin"; false; fi
mkdir -p deps/darwin_arm64

cd duckdb && \
CFLAGS="-target arm64-apple-macos11 -O3" CXXFLAGS="-target arm64-apple-macos11 -O3" ${DUCKDB_COMMON_BUILD_FLAGS} make bundle-library -j 2
Expand All @@ -46,6 +48,7 @@ deps.darwin.arm64: duckdb
.PHONY: deps.linux.amd64
deps.linux.amd64: duckdb
if [ "$(shell uname -s | tr '[:upper:]' '[:lower:]')" != "linux" ]; then echo "Error: must run build on linux"; false; fi
mkdir -p deps/linux_amd64

cd duckdb && \
CFLAGS="-O3" CXXFLAGS="-O3" ${DUCKDB_COMMON_BUILD_FLAGS} make bundle-library -j 2
Expand All @@ -54,6 +57,7 @@ deps.linux.amd64: duckdb
.PHONY: deps.linux.arm64
deps.linux.arm64: duckdb
if [ "$(shell uname -s | tr '[:upper:]' '[:lower:]')" != "linux" ]; then echo "Error: must run build on linux"; false; fi
mkdir -p deps/linux_arm64

cd duckdb && \
CC="aarch64-linux-gnu-gcc" CXX="aarch64-linux-gnu-g++" CFLAGS="-O3" CXXFLAGS="-O3" ${DUCKDB_COMMON_BUILD_FLAGS} make bundle-library -j 2
Expand All @@ -62,6 +66,7 @@ deps.linux.arm64: duckdb
.PHONY: deps.freebsd.amd64
deps.freebsd.amd64: duckdb
if [ "$(shell uname -s | tr '[:upper:]' '[:lower:]')" != "freebsd" ]; then echo "Error: must run build on freebsd"; false; fi
mkdir -p deps/freebsd_amd64

cd duckdb && \
CFLAGS="-O3" CXXFLAGS="-O3" ${DUCKDB_COMMON_BUILD_FLAGS} gmake bundle-library -j 2
Expand Down
Loading

0 comments on commit 847098b

Please sign in to comment.