Files
Daksh Mamodiya 6401308473 CUDA: Add per-language module -DEF: flag on Windows
NVIDIA CUDA links with `link.exe` directly, but had no
`CMAKE_CUDA_LINK_DEF_FILE_FLAG` and fell back to the global
`CMAKE_LINK_DEF_FILE_FLAG`.  With IntelLLVM enabled in the same build
tree, that holds `/Qoption,link,/DEF:`, which `link.exe` ignores, so a
CUDA DLL exported nothing from its `.def` file.  Commit 8b710d8264
(Linker: Generate per-language module -DEF: flags on Windows,
2025-05-28) covered the other Windows toolchains but missed CUDA.

Fixes: #25598
Issue: #26005
2026-10-01 23:26:45 +05:30

7 lines
88 B
Plaintext

extern "C" int moddef_answer();
int main()
{
return moddef_answer() == 42 ? 0 : 1;
}