Skip to content

Commit

Permalink
cicc and ptxas input is always the 3rd argument from the end
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Aug 13, 2024
1 parent 3aee341 commit 21b09cc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/compiler/cicc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,18 @@ pub fn parse_arguments<S>(
where
S: SearchableArgInfo<ArgData>,
{
let mut args = arguments.to_vec();
let input_loc = arguments.len() - 3;
let input = args.splice(input_loc..input_loc+1, []).next().unwrap();

let mut take_next = false;
let mut extra_inputs = vec![];
let mut input = OsString::new();
let mut outputs = HashMap::new();

let mut common_args = vec![];
let mut unhashed_args = vec![];

for arg in ArgsIter::new(arguments.iter().cloned(), arg_info) {
for arg in ArgsIter::new(args.iter().cloned(), arg_info) {
match arg {
Ok(arg) => {
let args = match arg.get_data() {
Expand Down Expand Up @@ -153,7 +156,6 @@ where
take_next = false;
&mut common_args
} else {
input.clone_from(p);
continue
}
}
Expand Down

0 comments on commit 21b09cc

Please sign in to comment.