Skip to content

Fix macros for <experimental/simd> usage - #139

Merged
christianparpart merged 1 commit into
contour-terminal:masterfrom
barracuda156:libcxx
Jul 26, 2026
Merged

Fix macros for <experimental/simd> usage#139
christianparpart merged 1 commit into
contour-terminal:masterfrom
barracuda156:libcxx

Conversation

@barracuda156

Copy link
Copy Markdown
Contributor

Closes: #138

Both modern macOS and modern FreeBSD use libc++, and the intention of existing macros seem to avoid experimental/simd is those cases, but that breaks the build with gcc that uses libstdc++ by default, and needs to use experimental/simd.

If you prefer, the change can be minimized to

#if __has_include(<experimental/simd>) && defined(LIBUNICODE_USE_STD_SIMD) && !(defined(__APPLE__) && defined(_LIBCPP_VERSION)) && !defined(__FreeBSD__)

P. S. I only tested on macOS, I rely on documentation that FreeBSD defines _LIBCPP_VERSION (it is a standard macro for libc++ detection, not platform-specific.

@christianparpart christianparpart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice, many thanks, @barracuda156

@christianparpart
christianparpart merged commit 9b3b221 into contour-terminal:master Jul 26, 2026
8 checks passed
@barracuda156
barracuda156 deleted the libcxx branch July 27, 2026 06:36
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.

0.9.2 fails to build with gcc 16 on macOS

2 participants