Skip to content

Commit 7cd10f3

Browse files
committed
Remove the --cexts-prepend-toolchain-to-path option
* It's only relevant when using the LLVM toolchain.
1 parent 5c30d9c commit 7cd10f3

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

lib/mri/mkmf.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848
end
4949
end
5050

51-
if defined?(::TruffleRuby) and Truffle::Boot.get_option('cexts-prepend-toolchain-to-path') and Truffle::Boot.get_option('cexts-sulong')
52-
ENV['PATH'] = "#{RbConfig::CONFIG['toolchain_path']}:#{ENV['PATH']}"
53-
end
54-
5551
class String # :nodoc:
5652
# Wraps a string in escaped quotes if it contains whitespace.
5753
def quote

src/main/java/org/truffleruby/options/Options.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ public final class Options {
109109
public final boolean CEXTS;
110110
/** --cexts-lock=true */
111111
public final boolean CEXT_LOCK;
112-
/** --cexts-prepend-toolchain-to-path=true */
113-
public final boolean CEXTS_PREPEND_TOOLCHAIN_TO_PATH;
114112
/** --options-log=false */
115113
public final boolean OPTIONS_LOG;
116114
/** --log-load=false */
@@ -255,7 +253,6 @@ public Options(Env env, OptionValues options, LanguageOptions languageOptions) {
255253
BACKTRACE_ON_NEW_FIBER = options.get(OptionsCatalog.BACKTRACE_ON_NEW_FIBER_KEY);
256254
CEXTS = options.get(OptionsCatalog.CEXTS_KEY);
257255
CEXT_LOCK = options.get(OptionsCatalog.CEXT_LOCK_KEY);
258-
CEXTS_PREPEND_TOOLCHAIN_TO_PATH = options.get(OptionsCatalog.CEXTS_PREPEND_TOOLCHAIN_TO_PATH_KEY);
259256
OPTIONS_LOG = options.get(OptionsCatalog.OPTIONS_LOG_KEY);
260257
LOG_LOAD = options.get(OptionsCatalog.LOG_LOAD_KEY);
261258
LOG_AUTOLOAD = options.get(OptionsCatalog.LOG_AUTOLOAD_KEY);
@@ -394,8 +391,6 @@ public Object fromDescriptor(OptionDescriptor descriptor) {
394391
return CEXTS;
395392
case "ruby.cexts-lock":
396393
return CEXT_LOCK;
397-
case "ruby.cexts-prepend-toolchain-to-path":
398-
return CEXTS_PREPEND_TOOLCHAIN_TO_PATH;
399394
case "ruby.options-log":
400395
return OPTIONS_LOG;
401396
case "ruby.log-load":

src/options.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ EXPERT:
129129
# C extension options
130130
CEXTS: [cexts, boolean, true, Enable use of C extensions]
131131
CEXT_LOCK: [cexts-lock, boolean, true, Use a Global Lock when running C extensions]
132-
CEXTS_PREPEND_TOOLCHAIN_TO_PATH: [cexts-prepend-toolchain-to-path, boolean, true, Prepend the GraalVM LLVM Toolchain to PATH when installing gems]
133132

134133
# Debugging the values of options
135134
OPTIONS_LOG: [options-log, boolean, false, Log the final value of all options]

src/shared/java/org/truffleruby/shared/options/OptionsCatalog.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public final class OptionsCatalog {
7272
public static final OptionKey<Boolean> BACKTRACE_ON_NEW_FIBER_KEY = new OptionKey<>(false);
7373
public static final OptionKey<Boolean> CEXTS_KEY = new OptionKey<>(true);
7474
public static final OptionKey<Boolean> CEXT_LOCK_KEY = new OptionKey<>(true);
75-
public static final OptionKey<Boolean> CEXTS_PREPEND_TOOLCHAIN_TO_PATH_KEY = new OptionKey<>(true);
7675
public static final OptionKey<Boolean> OPTIONS_LOG_KEY = new OptionKey<>(false);
7776
public static final OptionKey<Boolean> LOG_LOAD_KEY = new OptionKey<>(false);
7877
public static final OptionKey<Boolean> LOG_AUTOLOAD_KEY = new OptionKey<>(false);
@@ -583,14 +582,6 @@ public final class OptionsCatalog {
583582
.usageSyntax("")
584583
.build();
585584

586-
public static final OptionDescriptor CEXTS_PREPEND_TOOLCHAIN_TO_PATH = OptionDescriptor
587-
.newBuilder(CEXTS_PREPEND_TOOLCHAIN_TO_PATH_KEY, "ruby.cexts-prepend-toolchain-to-path")
588-
.help("Prepend the GraalVM LLVM Toolchain to PATH when installing gems")
589-
.category(OptionCategory.EXPERT)
590-
.stability(OptionStability.EXPERIMENTAL)
591-
.usageSyntax("")
592-
.build();
593-
594585
public static final OptionDescriptor OPTIONS_LOG = OptionDescriptor
595586
.newBuilder(OPTIONS_LOG_KEY, "ruby.options-log")
596587
.help("Log the final value of all options")
@@ -1441,8 +1432,6 @@ public static OptionDescriptor fromName(String name) {
14411432
return CEXTS;
14421433
case "ruby.cexts-lock":
14431434
return CEXT_LOCK;
1444-
case "ruby.cexts-prepend-toolchain-to-path":
1445-
return CEXTS_PREPEND_TOOLCHAIN_TO_PATH;
14461435
case "ruby.options-log":
14471436
return OPTIONS_LOG;
14481437
case "ruby.log-load":
@@ -1688,7 +1677,6 @@ public static OptionDescriptor[] allDescriptors() {
16881677
BACKTRACE_ON_NEW_FIBER,
16891678
CEXTS,
16901679
CEXT_LOCK,
1691-
CEXTS_PREPEND_TOOLCHAIN_TO_PATH,
16921680
OPTIONS_LOG,
16931681
LOG_LOAD,
16941682
LOG_AUTOLOAD,

0 commit comments

Comments
 (0)