Skip to content

Commit

Permalink
add --generate-line-info ptxas flag
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Aug 13, 2024
1 parent 3aee341 commit 7edbeb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/cicc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ where
match arg {
Ok(arg) => {
let args = match arg.get_data() {
Some(PassThrough(_)) => {
Some(PassThroughFlag) |
Some(PassThrough(_)) => {
take_next = false;
&mut common_args
},
Expand Down Expand Up @@ -279,6 +280,7 @@ ArgData! { pub
Output(PathBuf),
ExtraInput(PathBuf),
ExtraOutput(PathBuf),
PassThroughFlag,
PassThrough(OsString),
Unhashed(OsString),
}
Expand Down
1 change: 1 addition & 0 deletions src/compiler/ptxas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl CCompilerImpl for Ptxas {
use cicc::ArgData::*;

counted_array!(pub static ARGS: [ArgInfo<cicc::ArgData>; _] = [
flag!("--generate-line-info", PassThroughFlag),
take_arg!("-arch", OsString, CanBeSeparated, PassThrough),
take_arg!("-m", OsString, CanBeSeparated, PassThrough),
take_arg!("-o", PathBuf, Separated, Output),
Expand Down

0 comments on commit 7edbeb4

Please sign in to comment.