Commit 7c045215 authored by Zhen Zhang's avatar Zhen Zhang Committed by Andrey Mokhov

Update cross-compiling doc (#586)

parent fcc62d1e
......@@ -16,11 +16,13 @@ After all the dependencies are in place:
- `git submodule update --init`
- `./configure --target=arm-linux-gnueabihf`
- `cd hadrian`
- Modify `src/UserSettings.hs`, set `stage1Only` and `crossCompiling` to `True`.
- Modify `src/UserSettings.hs`, set `stage1Only` to `True`.
- Build the compiler by e.g. `./build.sh --flavour=quickest --integer-simple -V -j`
After that, you should have built `inplace/bin/ghc-stage1` cross compiler. We will go to the next section to validate this.
**NOTE**: Use of `-c` to configure the target is currently not supported. Please manually run `./configure` like above.
## Test run
Write a simple hello world haskell program:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment