Skip to content

Commit

Permalink
Add more debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Feb 19, 2024
1 parent 4737cfd commit c181d6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hc/hc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4043,6 +4043,7 @@ compiler_options parse_compiler_options(int argc, char **argv)
compiler_options result{};
for (char **arg = &argv[1]; argc > 1; argc--, arg++)
{
std::cout << "Argument " << argc << std::endl;
switch (arg[0][0])
{
case '/':
Expand Down Expand Up @@ -4202,6 +4203,7 @@ compiler_options parse_compiler_options(int argc, char **argv)

void compiler::parse_arguments()
{
std::cout << "Parsing arguments" << std::endl;
m_options = parse_compiler_options(argc, argv);
}

Expand Down Expand Up @@ -4762,5 +4764,6 @@ void check_buffer(char const *curr, unsigned int off, char const *buffer)

int main(int argc, char *argv[])
{
std::cerr << "Running compiler\n";
return compiler(argc, argv).process();
}

0 comments on commit c181d6a

Please sign in to comment.