diff options
Diffstat (limited to 'src/yue.cpp')
-rw-r--r-- | src/yue.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yue.cpp b/src/yue.cpp index 04b7099..96649c4 100644 --- a/src/yue.cpp +++ b/src/yue.cpp | |||
@@ -498,6 +498,9 @@ int main(int narg, const char** args) { | |||
498 | if (!targetPath.empty()) { | 498 | if (!targetPath.empty()) { |
499 | fs::create_directories(targetFile.parent_path()); | 499 | fs::create_directories(targetFile.parent_path()); |
500 | } | 500 | } |
501 | if (result.codes.empty()) { | ||
502 | return std::tuple{0, targetFile.string(), std::string("Built "sv) + file.first + '\n'}; | ||
503 | } | ||
501 | std::ofstream output(targetFile, std::ios::trunc | std::ios::out); | 504 | std::ofstream output(targetFile, std::ios::trunc | std::ios::out); |
502 | if (output) { | 505 | if (output) { |
503 | const auto& codes = result.codes; | 506 | const auto& codes = result.codes; |