Skip to content

Commit

Permalink
Merge pull request #3 from peterjc123/recognize_werror_for_nvcc
Browse files Browse the repository at this point in the history
Fix "Recognize `--Werror` for NVCC“
  • Loading branch information
soumith authored May 6, 2020
2 parents 25d94d9 + cfc2fbc commit c91ac10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/nvcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ pub fn generate_compile_commands(
}

counted_array!(pub static ARGS: [ArgInfo<gcc::ArgData>; _] = [
take_arg!("--Werror", OsString, Separated, PassThrough),
take_arg!("--compiler-bindir", PathBuf, Separated, PassThroughPath),
take_arg!("--compiler-options", OsString, Separated, PassThrough),
take_arg!("--std", OsString, Separated, PassThrough),
Expand All @@ -203,7 +204,6 @@ counted_array!(pub static ARGS: [ArgInfo<gcc::ArgData>; _] = [
take_arg!("-gencode", OsString, CanBeSeparated('='), PassThrough),
take_arg!("-maxrregcount", OsString, CanBeSeparated('='), PassThrough),
take_arg!("-std", OsString, CanBeSeparated('='), PassThrough),
take_arg!("--Werror", OsString, Separated, PassThrough),
]);

// TODO: add some unit tests

0 comments on commit c91ac10

Please sign in to comment.