Skip to content

Instantly share code, notes, and snippets.

FeatureName : Windows-Defender-Default-Definitions
State : Enabled
FeatureName : Printing-XPSServices-Features
State : Disabled
FeatureName : TelnetClient
State : Disabled
#!/usr/bin/env bash
set -euo pipefail
PROJECT_PATH="${PROJECT_PATH:-ghc/ghc}"
AUTHOR_USERNAME="${AUTHOR_USERNAME:-TerrorJack}"
ACCEPTED_ASSIGNEE_USERNAME="${ACCEPTED_ASSIGNEE_USERNAME:-marge-bot}"
GLAB_HOST="${GLAB_HOST:-gitlab.haskell.org}"
DELETE_REMOTE="${DELETE_REMOTE:-origin}"
require_command() {
#!/usr/bin/env -S deno run --allow-env --allow-net
import { Gitlab } from "npm:@gitbeaker/rest@43.4.0";
const api = new Gitlab({
host: "https://gitlab.haskell.org",
token: Deno.env.get("GITLAB_TOKEN"),
});
async function cancel(projectId, pipelineId) {
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnboxedTuples #-}
module Spark where
import GHC.Exts
import GHC.ST
spark :: a -> ST s a
spark x' = ST $ \s0 -> case spark# x s0 of
cd "$(mktemp -d)"
curl -f -L --retry 5 https://downloads.haskell.org/ghc/9.10.1/ghc-9.10.1-aarch64-alpine3_18-linux.tar.xz | tar xJ --strip-components=1
perl -pi -e 'BEGIN { binmode(STDIN); binmode(STDOUT); } s/aarch64-alpine-linux\0/aarch64-unknown-linux/' lib/aarch64-linux-ghc-9.*/libHSghc-9.*.so
sed -i -e 's/alpine/unknown/' mk/project.mk
sed -i -e 's/alpine/unknown/' configure
sed -i -e 's/alpine/unknown/' lib/settings
./configure --prefix=$HOME/.local
make install -j16
diff --git a/configure.py b/configure.py
index d03db1970f..45a53bec60 100755
--- a/configure.py
+++ b/configure.py
@@ -1634,7 +1634,8 @@ def configure_library(lib, output, pkgname=None):
def configure_v8(o, configs):
set_configuration_variable(configs, 'v8_enable_v8_checks', release=1, debug=0)
- o['variables']['v8_enable_webassembly'] = 0 if options.v8_lite_mode else 1
+ o['variables']['v8_enable_webassembly'] = 1
@TerrorJack
TerrorJack / fail.log
Created September 18, 2024 18:11
where are we at pandoc
Failed to build basement-0.0.16.
Build log (
/workspace/.ghc-wasm/.cabal/logs/ghc-9.11.20240918/basement-0.0.16-38a2e29ba85467680a122da498ba789199a6e5e72f561513cefaa7131a0a9068.log
):
Configuring library for basement-0.0.16...
Preprocessing library for basement-0.0.16...
In file included from Size.hsc:14:
cbits/foundation_system.h:57:5: error: "foundation: system: Unknown compiler"
57 | # error "foundation: system: Unknown compiler"
| ^
#!/usr/bin/env bash
set -euo pipefail
apt update
apt install -y automake build-essential curl git gnupg libffi-dev libncurses-dev libgmp-dev python3 libdw-dev
curl -f -L --retry 5 https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor -o /usr/share/keyrings/llvm-snapshot.gpg
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/bullseye llvm-toolchain-bullseye main" >> /etc/apt/sources.list.d/llvm-toolchain.list
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/bullseye llvm-toolchain-bullseye-18 main" >> /etc/apt/sources.list.d/llvm-toolchain.list
SSE3=1 SSSE3=1 SSE4_1=1 SSE4_2=1 SAHF=1 AVX=1 AVX2=1 FMA3=1 BMI1=1 BMI2=1 LZCNT=1 POPCNT=1 ATOM=0
The following syntax for options is accepted (both '-' and '--' are ok):
--flag (bool flags only)
--no-flag (bool flags only)
--flag=value (non-bool flags only, no spaces around '=')
--flag value (non-bool flags only)
-- (captures all remaining args in JavaScript)
Options:
--experimental (Indicates that V8 is running with experimental features enabled. This flag is typically not set explicitly but instead enabled as an implication of other flags which enable experimental features.)
diff --git a/compiler/GHC/SysTools/Terminal.hs b/compiler/GHC/SysTools/Terminal.hs
index a3f60e24363..809079b4aea 100644
--- a/compiler/GHC/SysTools/Terminal.hs
+++ b/compiler/GHC/SysTools/Terminal.hs
@@ -20,10 +20,10 @@ import System.IO.Unsafe
#if defined(mingw32_HOST_OS) && !defined(WINAPI)
# if defined(i386_HOST_ARCH)
# define WINAPI stdcall
-# elif defined(x86_64_HOST_ARCH)
+# elif defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)