Merge pull request #270542 from NickCao/glslang

glslang: fix build on riscv
This commit is contained in:
Nick Cao 2023-11-29 16:02:43 -05:00 committed by GitHub
commit c04a30d0ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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