···294 ++
295 lib.optional (lib.versionAtLeast release_version "15")
296 # Just like the `llvm-lit-cfg` patch, but for `polly`.
297- (getVersionFile "llvm/polly-lit-cfg-add-libs-to-dylib-path.patch");
0000000000298299 nativeBuildInputs =
300 [
···294 ++
295 lib.optional (lib.versionAtLeast release_version "15")
296 # Just like the `llvm-lit-cfg` patch, but for `polly`.
297+ (getVersionFile "llvm/polly-lit-cfg-add-libs-to-dylib-path.patch")
298+ ++
299+ lib.optional (lib.versions.major release_version == "20")
300+ # https://github.com/llvm/llvm-project/pull/139822 adds a commit which didn't get backported but is necessary for tests.
301+ (
302+ fetchpatch {
303+ url = "https://github.com/llvm/llvm-project/commit/ff2e8f93f6090965e82d799af43f6dfef52baa66.patch";
304+ stripLen = 1;
305+ hash = "sha256-CZBTZKzi4cYkZhgTB5oXIo1UdEAArg9I4vR/m0upSRk=";
306+ }
307+ );
308309 nativeBuildInputs =
310 [