mirror of
https://github.com/facebook/zstd.git
synced 2025-11-29 00:04:37 -05:00
Merge pull request #3614 from mredig/darwin-fat
add makefile entry to build fat binary on macos
This commit is contained in:
commit
189653a9c1
9
Makefile
9
Makefile
@ -197,6 +197,15 @@ uninstall:
|
|||||||
travis-install:
|
travis-install:
|
||||||
$(MAKE) install PREFIX=~/install_test_dir
|
$(MAKE) install PREFIX=~/install_test_dir
|
||||||
|
|
||||||
|
.PHONY: clangbuild-darwin-fat
|
||||||
|
clangbuild-darwin-fat: clean
|
||||||
|
clang -v
|
||||||
|
CXX=clang++ CC=clang CFLAGS="-Werror -Wconversion -Wno-sign-conversion -Wdocumentation -arch arm64" $(MAKE) zstd-release
|
||||||
|
mv programs/zstd programs/zstd_arm64
|
||||||
|
CXX=clang++ CC=clang CFLAGS="-Werror -Wconversion -Wno-sign-conversion -Wdocumentation -arch x86_64" $(MAKE) zstd-release
|
||||||
|
mv programs/zstd programs/zstd_x64
|
||||||
|
lipo -create programs/zstd_x64 programs/zstd_arm64 -output programs/zstd
|
||||||
|
|
||||||
.PHONY: gcc5build gcc6build gcc7build clangbuild m32build armbuild aarch64build ppcbuild ppc64build
|
.PHONY: gcc5build gcc6build gcc7build clangbuild m32build armbuild aarch64build ppcbuild ppc64build
|
||||||
gcc5build: clean
|
gcc5build: clean
|
||||||
gcc-5 -v
|
gcc-5 -v
|
||||||
|
|||||||
2
programs/.gitignore
vendored
2
programs/.gitignore
vendored
@ -9,6 +9,8 @@ zstd-small
|
|||||||
zstd-nolegacy
|
zstd-nolegacy
|
||||||
zstd-dictBuilder
|
zstd-dictBuilder
|
||||||
zstd-dll
|
zstd-dll
|
||||||
|
zstd_arm64
|
||||||
|
zstd_x64
|
||||||
|
|
||||||
# Object files
|
# Object files
|
||||||
*.o
|
*.o
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user