Skip to content

Commit

Permalink
fix linking
Browse files Browse the repository at this point in the history
  • Loading branch information
f0xeri committed Feb 24, 2024
1 parent 8eb9451 commit 720f0c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ namespace Slangc {
processUnit(mainModuleName, true);
for (auto &error : errors)
log() << error;
if (!errors.empty()) return;
if (std::ranges::any_of(errors, [](const ErrorMessage &err) {return !err.isWarning; }))
return;
log() << "Linking...\n";
std::stringstream clangCallStream;
clangCallStream << "clang ";
std::ranges::copy(std::views::transform(options.getInputFilePaths(), [](const std::filesystem::path &p){ return p.string(); }), std::ostream_iterator<std::string>(clangCallStream, ".o "));
Expand Down

0 comments on commit 720f0c1

Please sign in to comment.