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

CMakeLists.txt: fix build without C++ #26

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

ThomasDevoogdt
Copy link
Contributor

lwrb is written in c, so only enforce a c compiler

Seen while compiling fluent-bit on buildroot.

@CLAassistant
Copy link

CLAassistant commented Apr 24, 2023

CLA assistant check
All committers have signed the CLA.

@MaJerle
Copy link
Owner

MaJerle commented Apr 24, 2023

Can you elaborate more on what this improvement brings?

@ThomasDevoogdt
Copy link
Contributor Author

ThomasDevoogdt commented Apr 24, 2023

Can you elaborate more on what this improvement brings?

Cmake enforces some stuff based on the CMakeList.txt. By default, it will enforce a C and C++ compiler. And while it often goes together (most GCC builds do), it's not guaranteed. E.g. Buildroot has support for C-only toolchains. This commit makes sure that only C is required. And the intention is that fluent-bit takes this along at some point so that we can drop our patch in Buildroot.

lwrb is written in c, so only enforce a c compiler

Seen while compiling fluent-bit on buildroot.

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
@MaJerle MaJerle merged commit 772ea86 into MaJerle:develop Apr 24, 2023
ThomasDevoogdt added a commit to ThomasDevoogdt/fluent-bit that referenced this pull request Apr 25, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
@ThomasDevoogdt ThomasDevoogdt deleted the bugfix/no-c++ branch April 25, 2023 12:25
ThomasDevoogdt added a commit to ThomasDevoogdt/fluent-bit that referenced this pull request Apr 25, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
ThomasDevoogdt added a commit to ThomasDevoogdt/fluent-bit that referenced this pull request Apr 26, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
ThomasDevoogdt added a commit to ThomasDevoogdt/fluent-bit that referenced this pull request Apr 27, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
ThomasDevoogdt added a commit to ThomasDevoogdt/fluent-bit that referenced this pull request Apr 29, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
ThomasDevoogdt added a commit to ThomasDevoogdt/fluent-bit that referenced this pull request Apr 29, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
ThomasDevoogdt added a commit to ThomasDevoogdt/fluent-bit that referenced this pull request May 4, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
leonardo-albertovich pushed a commit to fluent/fluent-bit that referenced this pull request May 8, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
andreswebs pushed a commit to andreswebs/fluent-bit that referenced this pull request May 9, 2023
lwrb is written in c, so only enforce a c compiler

upstream: MaJerle/lwrb#26

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
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.

None yet

3 participants