toolchain version command
This commit is contained in:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user