Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring commonly used builtin options under lib directory #3381

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

kamleshbhalui
Copy link
Contributor

No description provided.

lib/options.cpp Outdated
compileCommand += argv[i];
compileCommand += " ";
}
compileCommand = compileCommand.replace("(from pragmas)", "");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this coming from? Why does it apply to all backends?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is required here (dpdk backend) and other backend adopting from base code would need
and this information is available(first hand here).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the string "from pragmas" coming from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

frontends/common/applyOptionsPragmas.cpp:30

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be cleaner to just skip "(from pragmas)" only if it is argv[0]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes skipped it.

@kamleshbhalui kamleshbhalui force-pushed the compile_commands_common branch from c3b730c to d569c8d Compare June 9, 2022 09:12
@mihaibudiu mihaibudiu merged commit f49d228 into p4lang:main Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants