Skip to content

Commit

Permalink
Don't show builtin sources with -h.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvander committed Oct 22, 2023
1 parent 71f30ab commit aaa0fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ int RunCompiler(int argc, char** argv, CompileContext& cc) {

if (compile_ok && options->show_includes) {
for (const auto& file : cc.sources()->opened_files()) {
if (file->is_main_file())
if (file->is_main_file() || file->is_builtin())
continue;
fprintf(stdout, "Note: including file: %s\n", file->name());
}
Expand Down

0 comments on commit aaa0fc4

Please sign in to comment.