зеркало из https://github.com/github/ruby.git
a C source code must end with EOL
cf: ISO 9899 section 5.1.1.2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1aaeeb326e
Коммит
a5c76f8cfc
|
@ -10,7 +10,7 @@ class TestMkmf
|
||||||
FileUtils.mkdir_p(hdrdir)
|
FileUtils.mkdir_p(hdrdir)
|
||||||
File.write("#{hdrdir}/#{hdrname}", "")
|
File.write("#{hdrdir}/#{hdrname}", "")
|
||||||
src = "#{fwdir}/main.c"
|
src = "#{fwdir}/main.c"
|
||||||
File.write(src, "void #{fw}(void) {}")
|
File.write(src, "void #{fw}(void) {}\n")
|
||||||
cmd = LINK_SO.dup
|
cmd = LINK_SO.dup
|
||||||
RbConfig.expand(cmd, RbConfig::CONFIG.merge("OBJS"=>src))
|
RbConfig.expand(cmd, RbConfig::CONFIG.merge("OBJS"=>src))
|
||||||
cmd.gsub!("$@", "#{fwdir}/#{fw}")
|
cmd.gsub!("$@", "#{fwdir}/#{fw}")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче