Skip to content

Commit

Permalink
Updated CONTRBUTING.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Aug 16, 2023
1 parent b2536a5 commit 5ced432
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ In various packages we use `CPP` pragmas to compile different code depending
on the target architecture. Using `haskell.nix` cross compilation pipeline
is very helpful to diagnose build time compiler errors.

#### Cross Compilation

Nix allows to build Windows native executables on Linux, e.g. to build
`network-mux:lib:network-mux` component one can run this command:

```bash
nix build .\#hydraJobs.x86_64-linux.ghc810-x86_64-w64-mingw32.packages.network-mux:lib:network-mux
```

Not all components are available in cross compilation right now. All the
test components are disabled in `./scripts/ci/cabal.project.local.Windows.CrossCompile`.

### Running tests with cabal

To run all tests from a particular component use the following command, in this
Expand Down

0 comments on commit 5ced432

Please sign in to comment.