Skip to content

Commit 76c20b0

Browse files
committed
Add MakeMakefile["C"]
1 parent 189c807 commit 76c20b0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/mkmf.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2944,7 +2944,13 @@ def self.[]=(name, mod)
29442944
@lang[name] = mod
29452945
end
29462946

2947-
self["C++"] = Module.new do
2947+
##
2948+
# The language that this module is for
2949+
LANGUAGE = -"C"
2950+
2951+
self[self::LANGUAGE] = self
2952+
2953+
cxx = Module.new do
29482954
# Module for C++
29492955

29502956
include MakeMakefile
@@ -2984,6 +2990,9 @@ def link_command(ldflags, *opts)
29842990

29852991
# :startdoc:
29862992
end
2993+
2994+
cxx::LANGUAGE = -"C++"
2995+
self[cxx::LANGUAGE] = cxx
29872996
end
29882997

29892998
# MakeMakefile::Global = #

0 commit comments

Comments
 (0)