mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 07:31:19 +00:00
cudaPackages.cuda_nvcc: optionals -> optionalString
This commit is contained in:
@@ -168,7 +168,7 @@ buildRedist (finalAttrs: {
|
||||
# The cospi|sinpi|rsqrt function signatures in include/common/math_functions.h do not match
|
||||
# glibc 2.42's.
|
||||
# Indeed, there they are declared with noexcept(true) which is not the case in cuda_nvcc.
|
||||
+ lib.optionals (lib.versionAtLeast glibc.version "2.42") ''
|
||||
+ lib.optionalString (lib.versionAtLeast glibc.version "2.42") ''
|
||||
nixLog "Patching math_functions.h signatures to match glibc's ones"
|
||||
substituteInPlace "''${!outputInclude:?}/include/crt/math_functions.h" \
|
||||
--replace-fail \
|
||||
|
||||
Reference in New Issue
Block a user