-
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
d7f4b87
commit de11e0b
Showing
9 changed files
with
260 additions
and
33 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
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
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
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
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
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
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,63 @@ | ||
From 84a6937329072249595f5b77ce92b0406577877b Mon Sep 17 00:00:00 2001 | ||
From: toyobayashi <[email protected]> | ||
Date: Mon, 1 Apr 2024 18:13:44 +0800 | ||
Subject: [PATCH] feat: add OS `wasm` alias | ||
|
||
--- | ||
packages/emnapi/common.gypi | 8 ++++---- | ||
packages/emnapi/emnapi.gyp | 2 +- | ||
2 files changed, 5 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/packages/emnapi/common.gypi b/packages/emnapi/common.gypi | ||
index 26909569..058f9e43 100644 | ||
--- a/packages/emnapi/common.gypi | ||
+++ b/packages/emnapi/common.gypi | ||
@@ -2,7 +2,7 @@ | ||
# in https://github.com/lovell/sharp/pull/3522 | ||
{ | ||
'variables': { | ||
- # OS: 'emscripten' | 'wasi' | 'unknown' | ||
+ # OS: 'emscripten' | 'wasi' | 'unknown' | 'wasm' | ||
'clang': 1, | ||
'target_arch%': 'wasm32', | ||
'wasm_threads%': 0, | ||
@@ -139,7 +139,7 @@ | ||
}], | ||
], | ||
}], | ||
- ['OS in "wasi unknown "', { | ||
+ ['OS in "wasi wasm unknown "', { | ||
'configurations': { | ||
'Release': { | ||
'ldflags': [ '-Wl,--strip-debug' ], | ||
@@ -239,7 +239,7 @@ | ||
'target_conditions': [ | ||
['_type=="executable"', { | ||
'conditions': [ | ||
- ['OS in "wasi unknown "', { | ||
+ ['OS in "wasi wasm unknown "', { | ||
'product_extension': 'wasm', | ||
|
||
'ldflags': [ | ||
@@ -326,7 +326,7 @@ | ||
}] | ||
], | ||
}], | ||
- ['OS in "wasi unknown "', { | ||
+ ['OS in "wasi wasm unknown "', { | ||
'product_extension': 'wasm', | ||
|
||
'ldflags': [ | ||
diff --git a/packages/emnapi/emnapi.gyp b/packages/emnapi/emnapi.gyp | ||
index edb81c1c..53089fed 100644 | ||
--- a/packages/emnapi/emnapi.gyp | ||
+++ b/packages/emnapi/emnapi.gyp | ||
@@ -63,7 +63,7 @@ | ||
] | ||
}, | ||
'conditions': [ | ||
- ['wasm_threads != 0 and OS in " unknown wasi"', { | ||
+ ['wasm_threads != 0 and OS in " unknown wasm wasi"', { | ||
'sources': [ | ||
'src/thread/async_worker_create.c', | ||
'src/thread/async_worker_init.S', |
Oops, something went wrong.