folly: fix build

- fix build by adding -fpermissive cflag
- add aarch64-linux to supported platforms
This commit is contained in:
squalus 2022-05-15 01:06:46 -07:00
parent 837a1b60c3
commit 6088824eee

View file

@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
zstd zstd
]; ];
NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" ]; NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
meta = with lib; { meta = with lib; {
@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/facebook/folly"; homepage = "https://github.com/facebook/folly";
license = licenses.asl20; license = licenses.asl20;
# 32bit is not supported: https://github.com/facebook/folly/issues/103 # 32bit is not supported: https://github.com/facebook/folly/issues/103
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]; platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" ];
maintainers = with maintainers; [ abbradar pierreis ]; maintainers = with maintainers; [ abbradar pierreis ];
}; };
} }