mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Info for Fedora and choosing C compiler
This commit is contained in:
parent
11599e5e1e
commit
6e1f2519cc
1 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue