[前][次][番号順一覧][スレッド一覧]

ruby-changes:69260

From: Benson <ko1@a...>
Date: Thu, 21 Oct 2021 08:24:24 +0900 (JST)
Subject: [ruby-changes:69260] 6e1f2519cc (master): Info for Fedora and choosing C compiler

https://git.ruby-lang.org/ruby.git/commit/?id=6e1f2519cc

From 6e1f2519cc851961939c4de61613161de3caf998 Mon Sep 17 00:00:00 2001
From: Benson Muite <bkmgit@u...>
Date: Fri, 10 Sep 2021 10:33:16 +0300
Subject: Info for Fedora and choosing C compiler

---
 README.md | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 07ca5dc645..7a313aeee7 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ cd yjit https://github.com/ruby/ruby/blob/trunk/README.md#L53
 ```
 
 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 https://github.com/ruby/ruby/blob/trunk/README.md#L62
 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:
 
 ```
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]