Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gmp-tarballs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
gmp-tarballs
Merge requests
!3
Fix darwin jobs in GHC CI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix darwin jobs in GHC CI
fix-macos
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Cheng Shao
requested to merge
fix-macos
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
This commit fixes the darwin jobs re changes in the wasm32-wasi support patch.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
a36adc7d
1 commit,
2 years ago
2 files
+
8
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
0001-Enable-building-for-wasm32-wasi.patch
+
8
−
6
Options
From
df70b7d9c1d1d1e8985060a1d56862a8f2e55d3f
Mon Sep 17 00:00:00 2001
From
2a11b8ed33fd994801432a080acccf5d751e7e11
Mon Sep 17 00:00:00 2001
From: Cheng Shao <astrohavoc@gmail.com>
Date:
Thu
,
3
Nov 2022 1
3:58:46
+0000
Date:
Sat
,
5
Nov 2022 1
4:12:38
+0000
Subject: [PATCH] Enable building for wasm32-wasi
This patch enables gmp-6.2.1 to build for wasm32-wasi, which lacks
signals and raise.h.
---
errno.c |
2
++
errno.c |
4
++
++
invalid.c | 9 ++++++++-
2 files changed, 1
0
insertions(+), 1 deletion(-)
2 files changed, 1
2
insertions(+), 1 deletion(-)
diff --git a/errno.c b/errno.c
index b4be555..
7c0f1db
100644
index b4be555..
17dde90
100644
--- a/errno.c
+++ b/errno.c
@@ -34,7 +34,
9
@@
see https://www.gnu.org/licenses/. */
@@ -34,7 +34,
11
@@
see https://www.gnu.org/licenses/. */
#include <stdlib.h>
+#ifdef HAVE_RAISE
#include <signal.h>
+#else
+#define raise(sig) exit(sig)
+#endif
#include "gmp-impl.h"
Loading