Merge pull request #270542 from NickCao/glslang
glslang: fix build on riscv
This commit is contained in:
commit
c04a30d0ea
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ cmake python3 bison jq ];
|
||||
|
||||
# Workaround missing atomic ops with gcc <13
|
||||
env.LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic";
|
||||
|
||||
postPatch = ''
|
||||
cp --no-preserve=mode -r "${spirv-tools.src}" External/spirv-tools
|
||||
ln -s "${spirv-headers.src}" External/spirv-tools/external/spirv-headers
|
||||
|
|
Loading…
Reference in a new issue