aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBenson Muite <bkmgit@users.noreply.github.com>2021-09-10 10:33:16 +0300
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:40 -0400
commit6e1f2519cc851961939c4de61613161de3caf998 (patch)
tree720fade21936318c86cab95dda274e628ef4fc53 /README.md
parent11599e5e1ebed485089a994753a9c3c79416c037 (diff)
downloadruby-6e1f2519cc851961939c4de61613161de3caf998.tar.gz
Info for Fedora and choosing C compiler
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 07ca5dc645..7a313aeee7 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ cd yjit
```
The YJIT `ruby` binary can be built with either GCC or Clang. For development, we recommend enabling debug symbols so that assertions are enabled as this makes debugging easier. Enabling debug mode will also make it possible for you to disassemble code generated by YJIT. However, this causes a performance hit. For maximum performance, compile with GCC, without the `DRUBY_DEBUG` or `YJIT_STATS` build options. More detailed build instructions are provided in the [Ruby README](https://github.com/ruby/ruby#how-to-compile-and-install).
-To support disassembly of the generated code, `libcapstone` is also required (`brew install capstone` on MacOS, `sudo apt-get install -y libcapstone-dev` on Ubuntu/Debian).
+To support disassembly of the generated code, `libcapstone` is also required (`brew install capstone` on MacOS, `sudo apt-get install -y libcapstone-dev` on Ubuntu/Debian and `sudo dnf -y install capstone-devel` on Fedora).
```
# Configure with debugging/stats options for development, build and install
@@ -62,6 +62,13 @@ To support disassembly of the generated code, `libcapstone` is also required (`b
make -j16 install
```
+Typically configure will choose default C compiler. To specify the C compiler, use
+```
+# Choosing a specific c compiler
+export CC=/path/to/my/choosen/c/compiler
+```
+before runing `./configure`.
+
You can test that YJIT works correctly by running:
```