-
Notifications
You must be signed in to change notification settings - Fork 1.8k
build: only compile simdutf if there is CXX support #10277
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
build: only compile simdutf if there is CXX support #10277
Conversation
|
Triggered full build of all targets just to confirm no issues during build with anything so can merge if green. |
Commit 3b04755 "build: lib: Bundle simdutf amalgamation v5.5.0", added support for simdutf, and enforces CXX support if FLB_UNICODE_ENCODER is selected. Which is the default case, fix that now. Signed-off-by: Thomas Devoogdt <[email protected]>
29c4de0 to
e480328
Compare
|
@cosmo0920 I reworked this PR so that it is functional. How I test it: Without CXX support: export CXX=/bin/false
cmake -GNinja -DFLB_PREFER_SYSTEM_LIBS=ON ../
-- Looking for a CXX compiler
-- Looking for a CXX compiler - NOTFOUND
-- CXX compiler not found, disable simdutf.With CXX support: export CXX=/usr/bin/c++
cmake -GNinja -DFLB_PREFER_SYSTEM_LIBS=ON ../
-- Looking for a CXX compiler
-- Looking for a CXX compiler - /usr/bin/c++
-- CXX compiler found, enable simdutf. |
cosmo0920
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. 👍
Commit 3b04755 "build: lib: Bundle simdutf amalgamation v5.5.0", added support for simdutf, and enforces CXX support if FLB_UNICODE_ENCODER is selected. Which is the default case, fix that now. See: fluent#10277 Signed-off-by: Thomas Devoogdt <[email protected]>
|
@edsiper Thank you! Can you also have a look at my other PRs? |
Commit 3b04755
"build: lib: Bundle simdutf amalgamation v5.5.0",
added support for simdutf, and enforces CXX support if FLB_UNICODE_ENCODER is selected. Which is the default case, fix that now.
As requested by #9277 (comment).