Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TIHan committed May 14, 2024
1 parent 5e07c63 commit 686174d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/coreclr/ilasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
- Other platforms: https://www.gnu.org/software/bison

To generate `asmparse.cpp`, run either of following:
- Unix: `yacc asmparse.y -o asmparse.cpp`
- Windows: `win_bison asmparse.y -o asmparse.cpp`
- Unix: `yacc asmparse.y -o prebuilt/asmparse.cpp`
- Windows: `win_bison asmparse.y -o prebuilt\asmparse.cpp`

## Docker
```bash
$ cd runtime

# run a throw-away-after-exit container with --rm
$ docker run --rm -v$(pwd):/runtime -w /runtime/src/coreclr/ilasm alpine \
sh -c 'apk add bison && yacc asmparse.y -o prebuilt/asmparse.cpp'
```

0 comments on commit 686174d

Please sign in to comment.