From ba9b4c4da6b9117529370f402e1015bf1730ccb2 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 5 May 2018 19:32:09 +0800 Subject: Docs --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 439bae83..49677984 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,18 @@ Windows - Run `vsproject/build_rustc_minicargo.cmd` to attempt to build libstd +Building non-rustc code +======================= + +To build your own code with mrustc, first you need to build at least libcore (and probably the full standard library). +This can be done on linux by running `make -f minicargo.mk LIBS`, or on windows with `build_std.cmd`. + +Next, run +- `minicargo -L ` to build a cargo project. +- or, `mrustc -L --out-dir ` to directly invoke mrustc. + +For additional options, both programs have a `--help` option. + Diagnosing Issues and Reporting Bugs ==================================== @@ -77,6 +89,8 @@ Current Features - Functional cargo clone (minicargo) - Includes build script support - Procedural macros (custom derive) +- Custom target specifications + - See `docs/target.md` Plans ===== -- cgit v1.2.3