Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Feb 10, 2025
1 parent 1a3b7a9 commit 6c29ac2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ pub(crate) fn determine_project_root(start: &Utf8Path) -> Result<(Utf8PathBuf, U
if let Some(file) =
get_existing_file(cwd.as_path(), &["laze-project.yml", "laze-project.toml"])
{
return Ok((cwd, file));
let filename = file.file_name().unwrap().into();
return Ok((cwd, filename));
}
cwd = match cwd.parent() {
Some(p) => Utf8PathBuf::from(p),
Expand Down
1 change: 1 addition & 0 deletions src/tests/47_toml/bar.8352856137977294963.o
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bar
1 change: 1 addition & 0 deletions src/tests/47_toml/foo.8352856137977294963.o
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foo
17 changes: 17 additions & 0 deletions src/tests/47_toml/laze-project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
includes = ["include.toml"]

[[builders]]
name = "single_builder"
env = { bindir = "build/${builder}/${app}" }

[[builders.rules]]
name = "CC"
in = 'c'
out = 'o'
cmd = 'cat ${in} > ${out}'

[[builders.rules]]
name = "LINK"
in = 'o'
cmd = 'cat ${in} > ${out}'

16 changes: 0 additions & 16 deletions src/tests/47_toml/laze-project.yml

This file was deleted.

0 comments on commit 6c29ac2

Please sign in to comment.