Skip to content

Commit

Permalink
WebAssembly support for threads is... fraught at every level.
Browse files Browse the repository at this point in the history
Fixes #459.

Change-Id: I4f9f501a56cad93887e94b7aeba4d7fae18df6c2
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62230
Reviewed-by: Alex Chernyakhovsky <[email protected]>
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Nov 16, 2023
1 parent 974f44c commit 7e0c1a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ cc_library(
"re2/stringpiece.h",
],
copts = select({
# WebAssembly support for threads is... fraught at every level.
"@platforms//cpu:wasm32": [],
"@platforms//cpu:wasm64": [],
"@platforms//os:wasi": [],
"@platforms//os:windows": [],
"//conditions:default": ["-pthread"],
Expand All @@ -64,6 +67,9 @@ cc_library(
# older versions of Clang will warn about the unused command line
# argument, so just don't pass it.
"@platforms//os:macos": [],
# WebAssembly support for threads is... fraught at every level.
"@platforms//cpu:wasm32": [],
"@platforms//cpu:wasm64": [],
"@platforms//os:wasi": [],
"@platforms//os:windows": [],
"//conditions:default": ["-pthread"],
Expand Down

0 comments on commit 7e0c1a9

Please sign in to comment.