https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2022-10-03T00:50:38Z
Ruby Issue Tracking System
Ruby master - Misc #19035: Change of have_header behaviour between 3.0 and 3.1 causes problems for C++ extensions
https://bugs.ruby-lang.org/issues/19035?journal_id=99430
2022-10-03T00:50:38Z
shyouhei (Shyouhei Urabe)
shyouhei@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Third Party's Issue</i></li></ul><p>I'm sorry that this feature is totally undocumented: there is <code>MakeMakefile["C++"]</code> which uses C++'s toolchain compiler instead of C's.</p>
<pre><code class="patch syntaxhl" data-language="patch"><span class="p">From 54977cc97f65313ec9f2611c17215aac8c477fa2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
</span> <shyouhei@ruby-lang.org>
<span class="p">Date: Mon, 3 Oct 2022 09:46:39 +0900
Subject: [PATCH] use of detected C++ compiler
</span><span class="err">
</span><span class="p">---
</span> ext/rocksdb/extconf.rb | 1 +
1 file changed, 1 insertion(+)
<span class="err">
</span><span class="gh">diff --git a/ext/rocksdb/extconf.rb b/ext/rocksdb/extconf.rb
index 50a0d05..4fcae0d 100644
</span><span class="gd">--- a/ext/rocksdb/extconf.rb
</span><span class="gi">+++ b/ext/rocksdb/extconf.rb
</span><span class="p">@@ -1,4 +1,5 @@</span>
require "mkmf"
<span class="gi">+extend MakeMakefile["C++"]
</span>
dir_config('rocksdb')
RbConfig::CONFIG["CPP"] = "g++ -E -std=gnu++17"
<span class="gd">--
</span><span class="p">2.17.1
</span></code></pre>