| ... | ... | @@ -21397,7 +21397,12 @@ fn validateExternType( |
| 21397 | 21397 | }, |
| 21398 | 21398 | .Fn => { |
| 21399 | 21399 | if (position != .other) return false; |
| 21400 | | return !Type.fnCallingConventionAllowsZigTypes(ty.fnCallingConvention()); |
| 21400 | return switch (ty.fnCallingConvention()) { |
| 21401 | // For now we want to authorize PTX kernel to use zig objects, even if we end up exposing the ABI. |
| 21402 | // The goal is to experiment with more integrated CPU/GPU code. |
| 21403 | .PtxKernel => true, |
| 21404 | else => !Type.fnCallingConventionAllowsZigTypes(ty.fnCallingConvention()), |
| 21405 | }; |
| 21401 | 21406 | }, |
| 21402 | 21407 | .Enum => { |
| 21403 | 21408 | var buf: Type.Payload.Bits = undefined; |