Skip to content

Commit

Permalink
Try to compile macOS arm as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed May 15, 2024
1 parent 69a35fe commit afe53ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ jobs:
- target: x86_64-apple-darwin
os: macos-latest
file-suffix: ""
# - target: aarch64-apple-darwin
# os: macos-latest
# file-suffix: ""
- target: aarch64-apple-darwin
os: macos-latest
file-suffix: ""
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -162,6 +162,8 @@ jobs:
toolchain: nightly
target: ${{ matrix.target }}
override: true
- name: Print CPU architecture
run: uname -m && uname -a
- if: runner.os == 'Linux'
run: sudo apt install -y libvncserver-dev
- if: runner.os == 'macOS'
Expand Down
2 changes: 1 addition & 1 deletion breakwater-core/src/framebuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl FrameBuffer {
// https://github.com/sbernauer/breakwater/pull/11
// If we make the FrameBuffer large enough (e.g. 10_000 x 10_000) we don't need to check the bounds here
// (x and y are max 4 digit numbers). Flamegraph has shown 5.21% of runtime in this bound check. On the other
// hand this can increase the framebuffer size dramatically and lower the cash locality.
// hand this can increase the framebuffer size dramatically and lowers the cash locality.
// In the end we did *not* go with this change.
if x < self.width && y < self.height {
unsafe {
Expand Down

0 comments on commit afe53ff

Please sign in to comment.