Skip to content

Commit b025ee4

Browse files
committed
Remove no longer needed change in mkmf.rb
* We do normal compilation with the toolchain, so tweaking the object extension should no longer be needed.
1 parent caa7d92 commit b025ee4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/mri/mkmf.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -576,14 +576,8 @@ def cc_command(opt="")
576576
conf = RbConfig::CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote,
577577
'arch_hdrdir' => $arch_hdrdir.quote,
578578
'top_srcdir' => $top_srcdir.quote)
579-
if defined?(::TruffleRuby)
580-
# Specify output file (-o) explictly. Clang 3.8 produces conftest.o and 3.9 conftest.bc.
581-
RbConfig::expand("$(CC) #$INCFLAGS #$CPPFLAGS #$CFLAGS #$ARCH_FLAG #{opt} -o #{CONFTEST}.#{$OBJEXT} -c #{CONFTEST_C}",
582-
conf)
583-
else
584-
RbConfig::expand("$(CC) #$INCFLAGS #$CPPFLAGS #$CFLAGS #$ARCH_FLAG #{opt} -c #{CONFTEST_C}",
585-
conf)
586-
end
579+
RbConfig::expand("$(CC) #$INCFLAGS #$CPPFLAGS #$CFLAGS #$ARCH_FLAG #{opt} -c #{CONFTEST_C}",
580+
conf)
587581
end
588582

589583
def cpp_command(outfile, opt="")

0 commit comments

Comments
 (0)