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
Commits
b87cae2d
Commit
b87cae2d
authored
2 years ago
by
Cheng Shao
Browse files
Options
Downloads
Patches
Plain Diff
Fix darwin jobs in GHC CI
parent
0e68c5bf
No related branches found
No related tags found
1 merge request
!3
Fix darwin jobs in GHC CI
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
0001-Enable-building-for-wasm32-wasi.patch
+8
-6
8 additions, 6 deletions
0001-Enable-building-for-wasm32-wasi.patch
gmp-6.2.1-nodoc.tar.bz2
+0
-0
0 additions, 0 deletions
gmp-6.2.1-nodoc.tar.bz2
with
8 additions
and
6 deletions
0001-Enable-building-for-wasm32-wasi.patch
+
8
−
6
View file @
b87cae2d
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"
...
...
This diff is collapsed.
Click to expand it.
gmp-6.2.1-nodoc.tar.bz2
+
0
−
0
View file @
b87cae2d
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment