Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Nov 2, 2022
1 parent 79bae82 commit 3dc2a43
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,23 @@ To build `seqwish` with `clang`, execute:
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ && cmake --build build -- -j 3
```

#### Notes for distribution
#### Notes for distribution and ARM64 systems

If you need to avoid machine-specific optimizations, use the `CMAKE_BUILD_TYPE=Generic` build type:
If you need machine-specific optimizations, use `-DEXTRA_FLAGS` to specify your architecture.

For example, on Linux ARM64 systems, do:

```shell
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Generic -DEXTRA_FLAGS='-march=armv8-a' && cmake --build build -- -j 3
```

For Docker image distribution, `-march=haswell` works decently:

```shell
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Generic && cmake --build build -- -j 3
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Generic -DEXTRA_FLAGS='-march=haswell' && cmake --build build -- -j 3
```


### Docker

Alternatively, you may build a Docker image that contains `seqwish`.
Expand Down

0 comments on commit 3dc2a43

Please sign in to comment.