File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -507,8 +507,7 @@ fn compile_metal(cx: &mut Build, cxx: &mut Build) {
507
507
let common = LLAMA_PATH . join ( "ggml-common.h" ) ;
508
508
509
509
let input_file = File :: open ( ggml_metal_shader_path) . expect ( "Failed to open input file" ) ;
510
- let mut output_file =
511
- File :: create ( & ggml_metal_shader_out_path) . expect ( "Failed to create output file" ) ;
510
+ let output_file = File :: create ( & ggml_metal_shader_out_path) . expect ( "Failed to create output file" ) ;
512
511
513
512
let output = Command :: new ( "sed" )
514
513
. arg ( "-e" )
@@ -656,7 +655,7 @@ fn main() {
656
655
push_warn_flags ( & mut cx, & mut cxx) ;
657
656
push_feature_flags ( & mut cx, & mut cxx) ;
658
657
659
- let feat_lib = if cfg ! ( feature = "vulkan" ) {
658
+ let _feat_lib = if cfg ! ( feature = "vulkan" ) {
660
659
Some ( compile_vulkan ( & mut cx, & mut cxx) )
661
660
} else if cfg ! ( feature = "cuda" ) {
662
661
Some ( compile_cuda ( & mut cx, & mut cxx, featless_cxx) )
You can’t perform that action at this time.
0 commit comments