assimp: fix build for riscv
This commit is contained in:
parent
30c0a2f738
commit
e837475e8b
|
@ -23,10 +23,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
env.NIX_CFLAGS_COMPILE = toString ([
|
||||
# Needed with GCC 12
|
||||
"-Wno-error=array-bounds"
|
||||
];
|
||||
] ++ lib.optionals stdenv.hostPlatform.isRiscV [
|
||||
"-Wno-error=free-nonheap-object"
|
||||
]);
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library to import various 3D model formats";
|
||||
|
|
Loading…
Reference in a new issue