diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-07-22 16:36:21 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-07-22 16:36:21 +0200 |
| commit | 07d2aba31037c645327f28eba179d6cdba245cca (patch) | |
| tree | 1d31aa824aaddcbcec71ade1af3dca4796619e5f /src/parser.cpp | |
| parent | 4889641af4fabcc4f02b5329942256f0313037a6 (diff) | |
Simplify exe path check.
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index eaf43b5bc..aba2b8276 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -6544,8 +6544,7 @@ gb_internal ParseFileError parse_packages(Parser *p, String init_filename) { if ((build_context.command_kind & Command__does_build) && build_context.build_mode == BuildMode_Executable) { String output_path = path_to_string(temporary_allocator(), build_context.build_paths[8]); - char *cpath = alloc_cstring(temporary_allocator(), output_path); - if (path_is_directory(output_path) && gb_file_exists(cpath)) { + if (path_is_directory(output_path)) { error({}, "Please specify the executable name with -out:<string> as a directory exists with the same name in the current working directory"); return ParseFile_DirectoryAlreadyExists; } |