toolchain version command

This commit is contained in:
2026-07-05 13:47:14 +02:00
parent e7f69ffb5a
commit 7ce3917c15
3 changed files with 34 additions and 1 deletions
+7 -1
View File
@@ -123,7 +123,13 @@ build_output_path :: proc(project_root, name: string, allocator := context.alloc
if dir_error != nil {
return "", false
}
if err := os2.make_directory_all(build_dir); err != nil {
if os.exists(build_dir) {
if !os.is_dir(build_dir) {
fmt.eprintfln("build path exists and is not a directory: %s", build_dir)
delete(build_dir, allocator)
return "", false
}
} else if err := os2.make_directory_all(build_dir); err != nil {
fmt.eprintfln("failed to create build directory '%s': %v", build_dir, err)
delete(build_dir, allocator)
return "", false