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 @@ -500,8 +500,7 @@ fn compile_metal(cx: &mut Build, cxx: &mut Build) {
500
500
let common = LLAMA_PATH . join ( "ggml-common.h" ) ;
501
501
502
502
let input_file = File :: open ( ggml_metal_shader_path) . expect ( "Failed to open input file" ) ;
503
- let mut output_file =
504
- File :: create ( & ggml_metal_shader_out_path) . expect ( "Failed to create output file" ) ;
503
+ let output_file = File :: create ( & ggml_metal_shader_out_path) . expect ( "Failed to create output file" ) ;
505
504
506
505
let output = Command :: new ( "sed" )
507
506
. arg ( "-e" )
@@ -649,7 +648,7 @@ fn main() {
649
648
push_warn_flags ( & mut cx, & mut cxx) ;
650
649
push_feature_flags ( & mut cx, & mut cxx) ;
651
650
652
- let feat_lib = if cfg ! ( feature = "vulkan" ) {
651
+ let _feat_lib = if cfg ! ( feature = "vulkan" ) {
653
652
Some ( compile_vulkan ( & mut cx, & mut cxx) )
654
653
} else if cfg ! ( feature = "cuda" ) {
655
654
Some ( compile_cuda ( & mut cx, & mut cxx, featless_cxx) )
You can’t perform that action at this time.
0 commit comments