File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ pub struct BuildArgs {
42
42
reason = "cmdline args have many bools"
43
43
) ]
44
44
pub struct InstallArgs {
45
- /// path to the `rustc_codegen_spirv` dylib
46
- #[ clap( long, hide( true ) , default_value = "INTERNALLY_SET" ) ]
47
- pub dylib_path : std:: path:: PathBuf ,
48
-
49
45
/// Directory containing the shader crate to compile.
50
46
#[ clap( long, default_value = "./" ) ]
51
47
pub shader_crate : std:: path:: PathBuf ,
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ package = "rustc_codegen_spirv"
91
91
92
92
/// Install the binary pair and return the `(dylib_path, toolchain_channel)`.
93
93
#[ expect( clippy:: too_many_lines, reason = "it's fine" ) ]
94
- pub fn run ( & mut self ) -> anyhow:: Result < ( PathBuf , String ) > {
94
+ pub fn run ( & self ) -> anyhow:: Result < ( PathBuf , String ) > {
95
95
// Ensure the cache dir exists
96
96
let cache_dir = cache_dir ( ) ?;
97
97
log:: info!( "cache directory is '{}'" , cache_dir. display( ) ) ;
@@ -210,7 +210,6 @@ package = "rustc_codegen_spirv"
210
210
. context ( "writing target spec files" ) ?;
211
211
}
212
212
213
- self . spirv_install . dylib_path . clone_from ( & dest_dylib_path) ;
214
213
Ok ( ( dest_dylib_path, toolchain_channel) )
215
214
}
216
215
}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ fn run() -> anyhow::Result<()> {
129
129
match cli. command {
130
130
Command :: Install ( install) => {
131
131
let shader_crate_path = install. spirv_install . shader_crate ;
132
- let mut command =
132
+ let command =
133
133
config:: Config :: clap_command_with_cargo_config ( & shader_crate_path, env_args) ?;
134
134
log:: debug!(
135
135
"installing with final merged arguments: {:#?}" ,
You can’t perform that action at this time.
0 commit comments