forked from servo/mozjs
-
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.
Add
-ohos
target support to autoconf (servo#458)
* Add `-ohos` target support to autoconf Add support for OpenHarmony OS. A patch has been submitted upstream, pending review: https://lists.gnu.org/archive/html/config-patches/2024-02/msg00008.html After the patch has been merged upstream, we can update `config.sub` in spidermonkey and drop this patch. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Link `libc++` for ohos Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
- Loading branch information
Showing
3 changed files
with
28 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/build/autoconf/config.sub b/build/autoconf/config.sub | ||
--- a/build/autoconf/config.sub (revision 20f7934762a6a1d4751353c8d024a0185ba85547) | ||
+++ b/build/autoconf/config.sub (revision 1d3dc1d7b53439ce8f799526ddbbe0f833b8ef0f) | ||
@@ -1754,7 +1754,7 @@ | ||
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | ||
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | ||
| nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ | ||
- | fiwix* ) | ||
+ | fiwix* | ohos* ) | ||
;; | ||
# This one is extra strict with allowed versions | ||
sco3.2v2 | sco3.2v[4-9]* | sco5v6*) | ||
@@ -1772,7 +1772,7 @@ | ||
# (given a valid OS), if there is a kernel. | ||
case $kernel-$os in | ||
linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ | ||
- | linux-musl* | linux-relibc* | linux-uclibc* ) | ||
+ | linux-musl* | linux-relibc* | linux-uclibc* | linux-ohos* ) | ||
;; | ||
uclinux-uclibc* ) | ||
;; |
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