diff --git a/src/compiler/cicc.rs b/src/compiler/cicc.rs index 41ba1e8ef..e79fffdb0 100644 --- a/src/compiler/cicc.rs +++ b/src/compiler/cicc.rs @@ -58,7 +58,7 @@ impl CCompilerImpl for Cicc { cwd: &Path, _env_vars: &[(OsString, OsString)], ) -> CompilerArguments { - parse_arguments(arguments, cwd, Language::Ptx, &ARGS[..], 3) + parse_arguments(arguments, cwd, Language::Ptx, &ARGS[..], 3, true) } #[allow(clippy::too_many_arguments)] async fn preprocess( @@ -107,6 +107,7 @@ pub fn parse_arguments( language: Language, arg_info: S, input_arg_offset_from_end: usize, + module_id_file_optional: bool, ) -> CompilerArguments where S: SearchableArgInfo, @@ -205,7 +206,7 @@ where "--module_id_file_name", ArtifactDescriptor { path: module_id_path, - optional: true, + optional: module_id_file_optional, }, ); } else { diff --git a/src/compiler/cudafe.rs b/src/compiler/cudafe.rs index 9ca1eb663..f0c00b57d 100644 --- a/src/compiler/cudafe.rs +++ b/src/compiler/cudafe.rs @@ -59,7 +59,7 @@ impl CCompilerImpl for CudaFE { cwd: &Path, _env_vars: &[(OsString, OsString)], ) -> CompilerArguments { - cicc::parse_arguments(arguments, cwd, Language::CudaFE, &ARGS[..], 1) + cicc::parse_arguments(arguments, cwd, Language::CudaFE, &ARGS[..], 1, false) } #[allow(clippy::too_many_arguments)] async fn preprocess( diff --git a/src/compiler/ptxas.rs b/src/compiler/ptxas.rs index 97e0c1061..c236fe289 100644 --- a/src/compiler/ptxas.rs +++ b/src/compiler/ptxas.rs @@ -59,7 +59,7 @@ impl CCompilerImpl for Ptxas { cwd: &Path, _env_vars: &[(OsString, OsString)], ) -> CompilerArguments { - cicc::parse_arguments(arguments, cwd, Language::Cubin, &ARGS[..], 3) + cicc::parse_arguments(arguments, cwd, Language::Cubin, &ARGS[..], 3, true) } #[allow(clippy::too_many_arguments)] async fn preprocess(