small fixes, DEPS

unstable
Penguin 3 years ago
parent 28ec6d3624
commit 8d276c3f5a

@ -0,0 +1,8 @@
((c-mode . ((helm-make-build-dir . "build")
(lsp-clients-clangd-args . ("--query-driver=arm-unknown-eabi-gcc"
"--compile-commands-dir=projecttest/igloo/target/samd21j18a"
"--pch-storage=memory"
"--background-index"
"-j=4"
))
)))

@ -434,8 +434,8 @@ impl IglooTarget
// Write our DEPS and DEPS_AS_ARGS vars // Write our DEPS and DEPS_AS_ARGS vars
writeln!(app_file, "\n").unwrap(); writeln!(app_file, "\n").unwrap();
writeln!(app_file, "DEPS=$(OBJS_AS_ARGS:%.o=%.d)").unwrap(); writeln!(app_file, "DEPS=$(OBJS:%.o=%.d)").unwrap();
writeln!(app_file, "DEPS_AS_ARGS=$(OBJS:%.o=%.d)").unwrap(); writeln!(app_file, "DEPS_AS_ARGS=$(OBJS_AS_ARGS:%.o=%.d)").unwrap();
writeln!(app_file, "").unwrap(); writeln!(app_file, "").unwrap();
ret = self.makefile_write_var( ret = self.makefile_write_var(
@ -1131,9 +1131,15 @@ endif\n").unwrap();
let mut sub_dir_as_string = String::from(&obj.into_str().unwrap()); let mut sub_dir_as_string = String::from(&obj.into_str().unwrap());
sub_dir_as_string = String::from( sub_dir_as_string = String::from(
&sub_dir_as_string[0..sub_dir_as_string.rfind('/').unwrap()]); &sub_dir_as_string[0..sub_dir_as_string.rfind('/').unwrap()]);
objs_as_args.push(obj_as_arg_string); if !objs_as_args.contains(&obj_as_arg_string)
// println!("{}", &sub_dir_as_string); {
sub_dirs.push(sub_dir_as_string); objs_as_args.push(obj_as_arg_string);
}
if !sub_dirs.contains(&sub_dir_as_string)
{
sub_dirs.push(sub_dir_as_string);
}
} }
self.makeopts.insert("OBJS_AS_ARGS".to_owned(), config::Value::from(objs_as_args)); self.makeopts.insert("OBJS_AS_ARGS".to_owned(), config::Value::from(objs_as_args));
self.makeopts.insert("SUB_DIRS".to_owned(), config::Value::from(sub_dirs)); self.makeopts.insert("SUB_DIRS".to_owned(), config::Value::from(sub_dirs));

Loading…
Cancel
Save