From ac82d4f628a2045d89964ae11c48403d3b091af1 Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Fri, 29 Mar 2024 08:55:52 +0000 Subject: [PATCH] Don't specify `-pthread` on Emscripten either. Change-Id: I6b23bb04f0caaa2a65a23c941b1aea1eeb4da25d Reviewed-on: https://code-review.googlesource.com/c/re2/+/62913 Reviewed-by: Ash Liu Reviewed-by: Paul Wankadia --- BUILD.bazel | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILD.bazel b/BUILD.bazel index 169c4d754..a1664761f 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -58,6 +58,7 @@ cc_library( # WebAssembly support for threads is... fraught at every level. "@platforms//cpu:wasm32": [], "@platforms//cpu:wasm64": [], + "@platforms//os:emscripten": [], "@platforms//os:wasi": [], "@platforms//os:windows": [], "//conditions:default": ["-pthread"], @@ -70,6 +71,7 @@ cc_library( # WebAssembly support for threads is... fraught at every level. "@platforms//cpu:wasm32": [], "@platforms//cpu:wasm64": [], + "@platforms//os:emscripten": [], "@platforms//os:wasi": [], "@platforms//os:windows": [], "//conditions:default": ["-pthread"],