aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMAHAD <mahadtxt@gmail.com>2023-01-17 20:47:26 +0500
committerMAHAD <mahadtxt@gmail.com>2023-01-17 20:54:11 +0500
commit78e96b15a5f12554fb1bd7b41b79b13b2dc4f59b (patch)
tree73b492d7209a015f76188ec94b3de80863d07fce
parent9e6c79054f8f85b148f21576feb15e3246936827 (diff)
downloadgcc-78e96b15a5f12554fb1bd7b41b79b13b2dc4f59b.zip
gcc-78e96b15a5f12554fb1bd7b41b79b13b2dc4f59b.tar.gz
gcc-78e96b15a5f12554fb1bd7b41b79b13b2dc4f59b.tar.bz2
README.md: Added experimental flag & updated gccrs path
(1) There is a need of the flag "-frust-incomplete-and-experimental-compiler-do-not-use" because the rust1 compiler didn't work without this. (2) The gccrs was not present in the $HOME/gccrs-install/, so updated the path to $HOME/gccrs-install/bin Signed-off-by: MAHAD <mahadtxt@gmail.com>
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index d55456e..63118c3 100644
--- a/README.md
+++ b/README.md
@@ -80,7 +80,7 @@ $ make
Running the compiler itself without make install we can simply invoke the compiler proper:
```bash
-$ ./gcc/rust1 test.rs -frust-debug -frust-dump-parse -Warray-bounds -dumpbase test.rs -mtune=generic -march=x86-64 -O0 -version -fdump-tree-gimple -o test.s -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64
+$ ./gcc/rust1 test.rs -frust-debug -frust-dump-parse -Warray-bounds -dumpbase test.rs -mtune=generic -march=x86-64 -O0 -version -fdump-tree-gimple -o test.s -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -frust-incomplete-and-experimental-compiler-do-not-use
```
To invoke the compiler driver (gccrs) we need to:
@@ -92,8 +92,8 @@ $ make install
Then invoke the compiler from the installation directory:
```bash
-$ $HOME/gccrs-install/gccrs -g -O2 -c test.rs -o test.o
-$ $HOME/gccrs-install/gccrs -o test test.o
+$ $HOME/gccrs-install/bin/gccrs -g -O2 -c test.rs -o test.o -frust-incomplete-and-experimental-compiler-do-not-use
+$ $HOME/gccrs-install/bin/gccrs -o test test.o
```
You can also setup your shell to automatically find the installed compiler. For example for `bash`,