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

Initial work to add gcc support #176

Merged
merged 17 commits into from
Nov 17, 2020
Merged

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Nov 13, 2020

Initial work to enable gcc support #23

Started as a hack to workaround cmake's FetchContent not appearing to pass the CMAKE_COMPILER_ID through when building with CXX=clang++-10

This also fixes a few minor issues that gcc complained about.

  • Enable CI pipeline tests

It doesn't work as is since it attempts to redefine the target upon every sub-project include.
At the moment we use uncrustify anyways.
Started as a hack to workaround cmake's FetchContent not appearing to
pass the CMAKE_COMPILER_ID through when building with CXX=clang++-10

This also fixes a few minor issues that gcc complained about.

TODO:
- [ ] Enable CI pipeline tests
@bpkroth bpkroth requested a review from grlap November 13, 2020 23:12
@bpkroth
Copy link
Contributor Author

bpkroth commented Nov 14, 2020

Per discussion with @grlap, the other (better) approach that I was originally thinking to remove the duplicate definitions by splitting the the declaration from the definition should also be possible.
Originally, I was concerned that that made for a more complicated build/integration scenario, however we already require the developer to #include Mlos.Platform.h in a single place (e.g. main.cpp).
We would essentially do the same thing for the SettingsProvider_gen_callbacks.h file.
Requires a bit more changes to the codegen first though.

.github/workflows/main.yml Outdated Show resolved Hide resolved
@bpkroth bpkroth marked this pull request as ready for review November 14, 2020 01:02
@bpkroth bpkroth linked an issue Nov 16, 2020 that may be closed by this pull request
@bpkroth
Copy link
Contributor Author

bpkroth commented Nov 17, 2020

Note: since this adds new build jobs to the pipelines, we'll need to change the CI requirements to let this through.

Copy link

@grlap grlap left a comment

Choose a reason for hiding this comment

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

LGTM

@bpkroth bpkroth merged commit ef5142d into microsoft:main Nov 17, 2020
@bpkroth bpkroth deleted the add-gcc-support branch November 17, 2020 22:05
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.

Enable gcc support
2 participants