aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-18 13:43:39 +0000
committerGitHub <noreply@github.com>2021-06-18 13:43:39 +0000
commit7a47eb66a2553e52cd444b4b9e9f57ec593dd89b (patch)
tree4c864098f0631445c2889cd018b3890498b888c0
parentd1fc48f20fb2c44bba1499b79016fb778a295f23 (diff)
parentabdb744aecb0cc08b23e58867daaed65e89051dc (diff)
downloadgcc-7a47eb66a2553e52cd444b4b9e9f57ec593dd89b.zip
gcc-7a47eb66a2553e52cd444b4b9e9f57ec593dd89b.tar.gz
gcc-7a47eb66a2553e52cd444b4b9e9f57ec593dd89b.tar.bz2
Merge #501
501: Update README.md for building steps on MacOS. r=philberty a=thomasyonug The path of header dir and sysroot should be specified when you configure the project. Fixed #500 Co-authored-by: Thomas Young <wenzhang5800@gmail.com>
-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