Skip to content

Commit

Permalink
don't rename .cudafe1.c and .cudafe1.cpp files
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Nov 26, 2024
1 parent 512853e commit 02f84c0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/compiler/nvcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,16 +1094,10 @@ fn remap_generated_filenames(
// auto-incrementing stable name
let maybe_extension = (!arg.starts_with('-'))
.then(|| {
[
".cpp1.ii",
".cpp4.ii",
".cudafe1.c",
".cudafe1.cpp",
".cudafe1.stub.c",
]
.iter()
.find(|ext| arg.ends_with(*ext))
.copied()
[".cpp1.ii", ".cpp4.ii", ".cudafe1.stub.c"]
.iter()
.find(|ext| arg.ends_with(*ext))
.copied()
})
.unwrap_or(None);

Expand Down

0 comments on commit 02f84c0

Please sign in to comment.