aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/README.md b/README.md
index 192d829..0da8d5a 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,8 @@ Clone the repository
$ git clone git@github.com:Rust-GCC/gccrs.git
```
+#### Linux
+
It is important to remember that GNU toolchain projects are designed to be built outside of their source directory
which is why a build directory is created.
@@ -48,6 +50,19 @@ $ ../gccrs/configure --prefix=$HOME/gccrs-install --disable-bootstrap --enable-m
$ make
```
+#### MacOS
+
+The path of header dir and sysroot should be specified when you configure the project.
+```bash
+$ mkdir mac-build
+$ cd mac-build
+$ ../gccrs/configure --prefix=$HOME/gccrs-install --disable-bootstrap --enable-multilib --enable-languages=rust --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+$ make
+
+```
+
+#### Running GCC Rust
+
Running the compiler itself without make install we can simply invoke the compiler proper:
```bash