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

Add new option to build p4c with LTO #3470

Merged
merged 2 commits into from
Sep 3, 2022
Merged

Add new option to build p4c with LTO #3470

merged 2 commits into from
Sep 3, 2022

Conversation

davidbolvansky
Copy link
Contributor

@davidbolvansky davidbolvansky commented Aug 1, 2022

Adds new CMAKE option to enable LTO build.

Adds a check if the combo gcc+lto+lld is detected and prints the warning that LLD does not work with GCC's LTO and switch to Gold linker.

Updated README with new option, also documented a few relevant ones related to linker selection.

@davidbolvansky
Copy link
Contributor Author

@mbudiu-vmw please merge

@mihaibudiu mihaibudiu merged commit 41d4d12 into p4lang:main Sep 3, 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