-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ruby-2.3+socket
Showing
1,720 changed files
with
47,466 additions
and
39,178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9.1.0.0-SNAPSHOT | ||
9.1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/env jruby | ||
|
||
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. | ||
# This code is released under a tri EPL/GPL/LGPL license. You can use it, | ||
# redistribute it and/or modify it under the terms of the: | ||
# | ||
# Eclipse Public License version 1.0 | ||
# GNU General Public License version 2 | ||
# GNU Lesser General Public License version 2.1 | ||
|
||
# A compiler for JRuby+Truffle C extensions | ||
|
||
require 'yaml' | ||
|
||
SULONG_DIR = ENV['SULONG_DIR'] | ||
|
||
unless SULONG_DIR | ||
abort 'You need to set SULONG_DIR to the location of a built checkout of the Sulong repository' | ||
end | ||
|
||
def mx(command, *args) | ||
command = "mx -p #{SULONG_DIR} --vm server #{command} #{args.join(' ')}" | ||
puts "$ #{command}" | ||
`#{command}` | ||
end | ||
|
||
CEXT_DIR = ARGV[0] | ||
|
||
unless CEXT_DIR | ||
abort 'You need to pass the directory of a C extension so I can build it' | ||
end | ||
|
||
CONFIG_FILE = File.join(CEXT_DIR, '.jruby-cext-build.yml') | ||
|
||
unless File.exist?(CONFIG_FILE) | ||
abort "There is no .jruby-cext-build.yml in this C extension at the moment - I don't know how to build it" | ||
end | ||
|
||
CONFIG = YAML.load_file(CONFIG_FILE) | ||
|
||
SRC = Dir[File.join(CEXT_DIR, CONFIG['src'])] | ||
OUT = File.join(CEXT_DIR, CONFIG['out']) | ||
|
||
LL = [] | ||
|
||
SRC.each do |src| | ||
ll = File.join(File.dirname(src), File.basename(src, '.*') + '.ll') | ||
mx 'su-clang', "-I#{SULONG_DIR}/include", '-Ilib/ruby/truffle/cext', '-S', '-emit-llvm', src, '-o', ll | ||
mx 'su-opt', '-S', '-mem2reg', ll, '-o', ll | ||
LL.push ll | ||
end | ||
|
||
mx 'su-link', '-o', OUT, *LL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
java7: {name: oraclejdk, version: "8u66", platformspecific: true} | ||
|
||
common: { | ||
packages: { | ||
git : ">=1.8.3" | ||
maven : ">=3.3.9" | ||
ruby : ">=2.1.0" | ||
} | ||
|
||
downloads: { | ||
JAVA_HOME: ${java7} | ||
} | ||
|
||
environment: { | ||
PATH: "$JAVA_HOME/bin:$PATH" | ||
} | ||
|
||
setup: [ | ||
[ruby, "tool/jt.rb", build] | ||
] | ||
|
||
timelimit: "30:00" | ||
} | ||
|
||
gate_caps: { | ||
capabilities: [linux, amd64, gate] | ||
} | ||
|
||
jt: [ruby, "tool/jt.rb"] | ||
|
||
builds = [ | ||
{name: "ruby-test-fast"} ${common} ${gate_caps} {run: [${jt} [test, fast]]}, | ||
{name: "ruby-test-specs-command-line"} ${common} ${gate_caps} {run: [${jt} [test, specs, ":command_line"]]}, | ||
{name: "ruby-test-specs-language"} ${common} ${gate_caps} {run: [${jt} [test, specs, ":language"]]}, | ||
{name: "ruby-test-specs-core"} ${common} ${gate_caps} {run: [${jt} [test, specs, ":core"]]}, | ||
{name: "ruby-test-specs-library"} ${common} ${gate_caps} {run: [${jt} [test, specs, ":library"]]}, | ||
{name: "ruby-test-specs-truffle"} ${common} ${gate_caps} {run: [${jt} [test, specs, ":truffle"]]} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.