mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update README
This commit is contained in:
parent
0dc3bba6f2
commit
7f2828d1c8
1 changed files with 3 additions and 3 deletions
|
@ -46,13 +46,13 @@ git clone https://github.com/Shopify/yjit
|
|||
cd yjit
|
||||
```
|
||||
|
||||
The YJIT `ruby` binary can be built with either GCC or Clang. We recommend enabling debug symbols so that assertions are enabled during development as this makes debugging easier. Enabling debug mode will also make it possible for you to disassemble code generated by YJIT, and get access to stat counters. More detailed build instructions are provided in the [Ruby README](https://github.com/ruby/ruby#how-to-compile-and-install).
|
||||
|
||||
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).
|
||||
|
||||
```
|
||||
# Configure with debugging/stats options for development, build and install
|
||||
./autogen.sh
|
||||
./configure cppflags=-DRUBY_DEBUG --prefix=$HOME/.rubies/ruby-yjit
|
||||
./configure cppflags="-DRUBY_DEBUG -DYJIT_STATS" --prefix=$HOME/.rubies/ruby-yjit
|
||||
make -j16 install
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue