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

Provide clang as the default compiler instead of gcc #19

Open
elendilm opened this issue Apr 19, 2020 · 4 comments
Open

Provide clang as the default compiler instead of gcc #19

elendilm opened this issue Apr 19, 2020 · 4 comments
Labels
enhancement New feature or request hacktoberfest help wanted Extra attention is needed

Comments

@elendilm
Copy link

No description provided.

@darkmattercoder
Copy link
Owner

Hi, thank you for your suggestion. I have a slight feeling that I might disagree on switching to clang++ as the default compiler.

But as my experience with it is fairly limited, please give me a few insights, what benefits you think of? Iirc, the binary compatibility of libs built with either toolchain might be limited when you compile code against it using the other one....

There is always the way to provide buildflags and separate docker images for clang but that also has to bee thought through carefully due to possible size impacts on the resulting images.

Could you please share your opinions to give a better understanding of the benefits you expect from using clang over g++?

Thanks

@elendilm
Copy link
Author

I mentioned clang because if I remember correctly, Android NDK stopped having gcc builds and only contains clang builds nowadays. Same with mac. So there is a gradual shift towards clang.

@hmoffatt
Copy link

I think the libraries will be compatible with both, so you can just include both compilers in the image if you want to support this.

I have successfully compiled and run my application with both clang and g++ (outside of your docker image), using the same Qt for both. Otherwise you would need new versions of all the system libraries too.

@darkmattercoder
Copy link
Owner

Offering this to hacktoberfest

@darkmattercoder darkmattercoder added enhancement New feature or request hacktoberfest help wanted Extra attention is needed labels Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants