Skip to content

feat(nvcc): support argument: --dependency-output#2708

Open
ZRHann wants to merge 4 commits into
mozilla:mainfrom
ZRHann:support-dependency-output
Open

feat(nvcc): support argument: --dependency-output#2708
ZRHann wants to merge 4 commits into
mozilla:mainfrom
ZRHann:support-dependency-output

Conversation

@ZRHann
Copy link
Copy Markdown

@ZRHann ZRHann commented May 13, 2026

This adds --dependency-output to nvcc::ARGS, which is equivalent to gcc's -MF flag. Both flags map to the same DepArgumentPath variant and follow identical code paths in gcc::parse_arguments().

Without this fix, the file path following --dependency-output is treated as a Raw input file. When the actual .cu source is then seen as a second input, the parser returns CannotCache("multiple input files"), leading to UnhandledCompile and a cache miss.

docs for this flag: https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/#dependency-output-file-mf

@ZRHann ZRHann force-pushed the support-dependency-output branch from 76c0b68 to 451aa43 Compare May 13, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant