Skip to content

Commit a43b5c2

Browse files
authored
Merge pull request #320 from adrienntindall/mic-test
Mic Test Overlay
2 parents 941ca47 + 5fe6d01 commit a43b5c2

File tree

13 files changed

+1082
-1947
lines changed

13 files changed

+1082
-1947
lines changed

.githooks/pre-commit

100755100644
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/bin/sh
2-
# Redirect output to stderr.
3-
exec 1>&2
4-
5-
# Run clang-format on staged files; abort the commit if any files are changed
6-
if ! git clang-format --extensions c,cpp,h,hpp ; then
7-
echo "linting made changes to source files; aborting commit"
8-
exit 1
9-
fi
1+
#!/bin/sh
2+
# Redirect output to stderr.
3+
exec 1>&2
4+
5+
# Run clang-format on staged files; abort the commit if any files are changed
6+
if ! git clang-format --extensions c,cpp,h,hpp ; then
7+
echo "linting made changes to source files; aborting commit"
8+
exit 1
9+
fi

.github/calcrom/webhook.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash -ex
22

3-
# Only run this script if it's the master branch build.
4-
if [[ "$GITHUB_REF" != "refs/heads/master" || "$GITHUB_EVENT_NAME" != "push" ]]; then
3+
# Only run this script if it's the main branch build.
4+
if [[ "$GITHUB_REF" != "refs/heads/main" || "$GITHUB_EVENT_NAME" != "push" ]]; then
55
exit 0
66
fi
77

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66
pull_request:
77
workflow_dispatch:
88

@@ -113,4 +113,3 @@ jobs:
113113
cwd: "./xmap"
114114
add: "*.xMAP"
115115
message: ${{ env.XMAP_COMMIT_MSG }}
116-

CONTRIBUTING.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This repository includes an opinionated `clang-format` specification to ensure t
1212

1313
### Requirements
1414

15-
- `clang-format@17` or newer
15+
- `clang-format@18` or newer
1616

1717
### Usage
1818

@@ -47,3 +47,23 @@ asm void func() {
4747
// clang-format on
4848
#endif // NONMATCHING
4949
```
50+
51+
### Ubuntu (WSL) Installation
52+
53+
On older versions of Ubuntu, clang-format will default to earlier versions.
54+
To install clang-format-18 on Ubuntu (WSL), run the following:
55+
```sh
56+
wget https://apt.llvm.org/llvm.sh
57+
chmod +x llvm.sh
58+
sudo ./llvm.sh 18
59+
sudo apt install clang-format-18
60+
```
61+
And then create a symbolic link:
62+
```sh
63+
ln -s /usr/bin/clang-format-18 /usr/bin/clang-format
64+
```
65+
66+
If you're using the pre-commit hook, you also want to set up a symlink for git:
67+
```sh
68+
git config alias.clang-format clang-format-18
69+
```

asm/include/overlay_62.inc

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)