mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
libmodplug: fix build with clang 16
Remove usage of the register storage class, which is not allowed in C++17 (the default for clang 16).
This commit is contained in:
parent
dba6d77ad2
commit
9db1e83c07
@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25";
|
||||
};
|
||||
|
||||
# Unfortunately, upstream appears inactive and the patches from the fork don’t apply cleanly.
|
||||
# Modify `src/fastmix.cpp` to remove usage of the register storage class, which is
|
||||
# not allowed in C++17 and is an error in clang 16.
|
||||
prePatch = "substituteInPlace src/fastmix.cpp --replace 'register ' ''";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
preConfigure = ''
|
||||
|
Loading…
Reference in New Issue
Block a user