forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a0d517
commit 6115d95
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From a0a45fa9810f8b72066bcdd2540e81a6e3654ae0 Mon Sep 17 00:00:00 2001 | ||
From: Walter Lee <waltl@google.com> | ||
Date: Fri, 5 Jan 2024 22:08:40 -0500 | ||
Subject: [PATCH] Define constraint for emscripten os | ||
|
||
This is to be used for Web Assembly, with cpus wasm32/wasm64. | ||
--- | ||
os/BUILD | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/os/BUILD b/os/BUILD | ||
index ae6e8b0..8e9f990 100644 | ||
--- a/os/BUILD | ||
+++ b/os/BUILD | ||
@@ -106,6 +106,11 @@ constraint_value( | ||
constraint_setting = ":os", | ||
) | ||
|
||
+constraint_value( | ||
+ name = "emscripten", | ||
+ constraint_setting = ":os", | ||
+) | ||
+ | ||
# WASI (WebAssembly System Interface) | ||
# https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-overview.md | ||
constraint_value( |