diff --git a/.github/workflows/netbsd.yml b/.github/workflows/netbsd.yml index c27257b2..aabe5430 100644 --- a/.github/workflows/netbsd.yml +++ b/.github/workflows/netbsd.yml @@ -10,12 +10,10 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 - # TODO: disabled for now because freezes with no output for some reason. - # Started happening in #562, so it has something to do with self-hosted compiler. - # + with: + fetch-depth: 0 # Fetch the whole Git history # TODO: don't use an action for this? could we instead install qemu from apt and call it? - - if: false - uses: cross-platform-actions/action@v0.26.0 + - uses: cross-platform-actions/action@v0.26.0 env: PKG_PATH: 'https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All' with: @@ -23,11 +21,10 @@ jobs: version: '10.0' environment_variables: PKG_PATH run: | - sudo pkgin -y install clang libLLVM gmake diffutils && \ + sudo pkgin -y install clang gmake diffutils git && \ gmake && \ - ./runtests.sh --verbose --stage1 && \ - ./runtests.sh --verbose --stage2 && \ ./runtests.sh --verbose && \ - ./runtests.sh --verbose --jou-flags "--verbose" && \ + mv jou jou_bootstrap && gmake && \ + ./runtests.sh --verbose && \ gmake clean && \ ./doctest.sh diff --git a/Makefile.posix b/Makefile.posix index 6dddf1ca..28968bf3 100644 --- a/Makefile.posix +++ b/Makefile.posix @@ -1,6 +1,6 @@ # Linux has llvm-config-xx in PATH, where xx is version number # On macos, brew installs LLVM to a weird place in /usr/local/ -# On NetBSD, use llvm-config from libLLVM (package from pkgsrc) +# On NetBSD, llvm-config is unversioned. LLVM_CONFIG ?= $(shell \ which llvm-config-19 \ || which /usr/local/opt/llvm@19/bin/llvm-config \ @@ -20,7 +20,7 @@ LLVM_CONFIG ?= $(shell \ || which llvm-config-14 \ || which /usr/local/opt/llvm@14/bin/llvm-config \ || which /opt/homebrew/opt/llvm@14/bin/llvm-config \ - || which /usr/pkg/libexec/libLLVM/llvm-config \ + || which llvm-config \ ) all: jou diff --git a/README.md b/README.md index d4b92ead..c522f393 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ shortcomings. 1. Install the dependencies: ``` - # pkgin install bash clang git gmake libLLVM + # pkgin install bash clang git gmake ``` Optionally `diffutils` can be installed for coloured diff outputs. 2. Download and compile Jou. diff --git a/bootstrap.sh b/bootstrap.sh index 69bad59d..ad89ad64 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # The Jou compiler is written in Jou, but it doesn't help you very much if you # have nothing that can compile or run Jou code. That's why this script exists. @@ -87,7 +87,7 @@ for i in $(seq 1 ${#commits[@]}); do folder=$(folder_of_commit $i) rm -rf $folder - mkdir -vp $folder + mkdir -p $folder # This seems to be the best way to checkout a commit into a folder. git archive --format=tar $commit | (cd $folder && tar xf -)