Skip to content

Commit b19391e

Browse files
committed
Always build a GraalVM and remove the development launcher
PullRequest: truffleruby/624
2 parents dd198f9 + 1ae7d03 commit b19391e

File tree

30 files changed

+363
-793
lines changed

30 files changed

+363
-793
lines changed

.gitignore

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,6 @@ nbproject
1818
.factorypath
1919

2020
# C extensions
21-
lib/cext/truffleposix.so
22-
lib/cext/truffleposix.dylib
23-
lib/cext/sulongmock.o
24-
lib/cext/ruby.su
25-
lib/cext/ruby.o
26-
lib/cext/sulong-libs
27-
lib/cext/include/sulong/polyglot.h
28-
lib/mri/openssl.su
29-
lib/mri/zlib.su
30-
lib/mri/psych.su
31-
lib/mri/syslog.su
32-
lib/mri/nkf.su
33-
lib/mri/etc.su
34-
lib/mri/rbconfig/sizeof.su
3521
/.ext
3622

3723
bench/chunky_png/oily_png/ext/oily_png/Makefile
@@ -50,11 +36,13 @@ src/main/c/*/*.bc
5036
src/main/c/*/*.su
5137
src/main/c/*/extconf.h
5238
src/main/c/*/mkmf.log
39+
src/main/c/cext/ruby.o
5340
src/main/c/etc/constdefs.h
5441
src/main/c/sulongmock/sulongmock.c
42+
src/main/c/sulongmock/sulongmock.o
5543
src/main/c/truffleposix/truffleposix.o
56-
src/main/c/truffleposix/truffleposix.so
57-
src/main/c/truffleposix/truffleposix.dylib
44+
src/main/c/truffleposix/libtruffleposix.so
45+
src/main/c/truffleposix/libtruffleposix.dylib
5846

5947
test/truffle/cexts/**/Makefile
6048
test/truffle/cexts/**/*.bc
@@ -96,41 +84,6 @@ test/mri/tests/cext-c/**/*.o
9684
/bench-results.json
9785
/bench-results-processed.json
9886

99-
# Gem dirs
100-
lib/ruby/gems/2.4.0/*
101-
!lib/ruby/gems/2.4.0/gems
102-
lib/ruby/gems/2.4.0/gems/*
103-
!lib/ruby/gems/2.4.0/gems/did_you_mean-1.1.0
104-
!lib/ruby/gems/2.4.0/gems/minitest-5.10.1
105-
!lib/ruby/gems/2.4.0/gems/net-telnet-0.1.1
106-
!lib/ruby/gems/2.4.0/gems/power_assert-0.4.1
107-
!lib/ruby/gems/2.4.0/gems/rake-12.0.0
108-
!lib/ruby/gems/2.4.0/gems/test-unit-3.2.3
109-
!lib/ruby/gems/2.4.0/gems/xmlrpc-0.2.1
110-
111-
!lib/ruby/gems/2.4.0/specifications
112-
!lib/ruby/gems/2.4.0/specifications/truffleruby_gem_dir_marker.txt
113-
lib/ruby/gems/2.4.0/specifications/*
114-
!lib/ruby/gems/2.4.0/specifications/default
115-
!lib/ruby/gems/2.4.0/specifications/did_you_mean-1.1.0.gemspec
116-
!lib/ruby/gems/2.4.0/specifications/minitest-5.10.1.gemspec
117-
!lib/ruby/gems/2.4.0/specifications/net-telnet-0.1.1.gemspec
118-
!lib/ruby/gems/2.4.0/specifications/power_assert-0.4.1.gemspec
119-
!lib/ruby/gems/2.4.0/specifications/rake-12.0.0.gemspec
120-
!lib/ruby/gems/2.4.0/specifications/test-unit-3.2.3.gemspec
121-
!lib/ruby/gems/2.4.0/specifications/xmlrpc-0.2.1.gemspec
122-
123-
# Bin directory
124-
bin/*
125-
!bin/gem
126-
!bin/irb
127-
!bin/rake
128-
!bin/rdoc
129-
!bin/ri
130-
!bin/ruby
131-
!bin/truffleruby.sh
132-
!bin/testrb
133-
13487
# Diagnostic output directory
13588
dumps/
13689

bin/ruby

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/truffleruby.sh

Lines changed: 0 additions & 139 deletions
This file was deleted.

ci.jsonnet

Lines changed: 14 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ local part_definitions = {
7676
build: {
7777
setup+: [
7878
["mx", "sversions"],
79-
] + self.before_build + [
80-
["mx", "build_truffleruby"],
81-
] + self.after_build,
79+
] + self.before_build + jt(["build"]) + self.after_build,
8280
},
8381

8482
truffleruby: {
@@ -316,23 +314,6 @@ local part_definitions = {
316314
path+:: ["$JAVA_HOME/bin"],
317315
},
318316
},
319-
320-
oraclejdk11: {
321-
downloads+: {
322-
JAVA_HOME: {
323-
name: "oraclejdk",
324-
version: "11+20",
325-
platformspecific: true,
326-
},
327-
328-
# We need a JDK 8 to compile TruffleRuby
329-
EXTRA_JAVA_HOMES: $.jdk.labsjdk8.downloads["JAVA_HOME"],
330-
},
331-
332-
environment+: {
333-
path+:: ["$JAVA_HOME/bin"],
334-
},
335-
},
336317
},
337318

338319
platform: {
@@ -380,7 +361,6 @@ local part_definitions = {
380361
capabilities+: self["$.cap"].normal_machine,
381362
targets+: ["deploy", "post-merge"],
382363
},
383-
fast_cpu: { capabilities+: ["fast"] },
384364
bench: { capabilities+: self["$.cap"].bench_machine },
385365
x52_18_override: {
386366
is_after+:: ["$.cap.bench"],
@@ -553,38 +533,30 @@ local composition_environment = utils.add_inclusion_tracking(part_definitions, "
553533

554534
test_builds:
555535
{
556-
local shared = $.jdk.labsjdk8 + $.use.common + $.use.build + $.cap.gate +
557-
$.run.test_unit_tck_specs + { timelimit: "35:00" },
558-
559-
"ruby-test-specs-linux": $.platform.linux + shared,
560-
"ruby-test-specs-darwin": $.platform.darwin + shared,
561-
} +
562-
563-
{
564-
"ruby-test-fast-java11-linux": $.platform.linux + $.jdk.oraclejdk11 + $.use.common + $.use.build + $.cap.gate +
565-
$.run.test_fast + { timelimit: "30:00" },
536+
"ruby-lint": $.platform.linux + $.cap.gate + $.jdk.labsjdk8 + $.use.common + $.run.lint + { timelimit: "30:00" },
566537
} +
567538

568539
{
569-
local linux_gate = $.platform.linux + $.cap.gate + $.jdk.labsjdk8 + $.use.common + { timelimit: "01:00:00" },
540+
local linux_gate = $.platform.linux + $.cap.gate + $.jdk.labsjdk8 + $.use.common + $.use.build + { timelimit: "01:00:00" },
570541

571-
"ruby-lint": linux_gate + $.run.lint + { timelimit: "30:00" },
572-
"ruby-test-mri-linux": $.cap.fast_cpu + linux_gate + $.use.build + $.run.test_mri + { timelimit: "25:00" },
573-
"ruby-test-integration": linux_gate + $.use.build + $.run.test_integration,
574-
"ruby-test-cexts-linux": linux_gate + $.use.build + $.use.gem_test_pack + $.run.test_cexts,
575-
"ruby-test-gems": linux_gate + $.use.build + $.use.gem_test_pack + $.run.test_gems,
576-
"ruby-test-ecosystem": linux_gate + $.use.build + $.use.gem_test_pack + $.run.test_ecosystem,
542+
"ruby-test-specs-linux": linux_gate + $.run.test_unit_tck_specs + { timelimit: "35:00" },
543+
"ruby-test-fast-linux": linux_gate + $.run.test_fast + { timelimit: "30:00" }, # To catch missing slow tags
544+
"ruby-test-mri-linux": linux_gate + $.run.test_mri + { timelimit: "25:00" },
545+
"ruby-test-integration": linux_gate + $.run.test_integration,
546+
"ruby-test-cexts-linux": linux_gate + $.use.gem_test_pack + $.run.test_cexts,
547+
"ruby-test-gems": linux_gate + $.use.gem_test_pack + $.run.test_gems,
548+
"ruby-test-ecosystem": linux_gate + $.use.gem_test_pack + $.run.test_ecosystem,
577549

578-
"ruby-test-compiler-graal-core": linux_gate + $.use.build + $.use.truffleruby + $.graal.core +
579-
$.run.test_compiler,
550+
"ruby-test-compiler-graal-core": linux_gate + $.use.truffleruby + $.graal.core + $.run.test_compiler,
580551
# TODO was commented out, needs to be rewritten?
581552
# {name: "ruby-test-compiler-graal-enterprise"} + linux_gate + $.graal_enterprise + {run: jt(["test", "compiler"])},
582553
} +
583554

584555
{
585556
local darwin_gate = $.platform.darwin + $.cap.gate + $.jdk.labsjdk8 + $.use.common + $.use.build + { timelimit: "01:00:00" },
586557

587-
"ruby-test-mri-darwin": darwin_gate + $.run.test_mri,
558+
"ruby-test-specs-darwin": darwin_gate + $.run.test_unit_tck_specs + { timelimit: "35:00" },
559+
"ruby-test-mri-darwin": darwin_gate + $.run.test_mri,
588560
"ruby-test-cexts-darwin": darwin_gate + $.use.gem_test_pack + $.run.test_cexts,
589561
} +
590562

@@ -603,7 +575,7 @@ local composition_environment = utils.add_inclusion_tracking(part_definitions, "
603575
} + {
604576
local shared = $.use.build + $.svm.enterprise + { timelimit: "01:15:00" },
605577

606-
"ruby-test-svm-graal-enterprise-linux": shared + svm_test_platforms.linux + $.cap.fast_cpu,
578+
"ruby-test-svm-graal-enterprise-linux": shared + svm_test_platforms.linux,
607579
"ruby-test-svm-graal-enterprise-darwin": shared + svm_test_platforms.darwin,
608580
},
609581

lib/cext/include/truffleruby/truffleruby-pre.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ extern "C" {
2121
#define TRUFFLERUBY
2222

2323
#include <sulong/truffle.h>
24+
25+
#ifdef SULONG_POLYGLOT_H
26+
#include SULONG_POLYGLOT_H
27+
#else
2428
#include <sulong/polyglot.h>
29+
#endif
2530

2631
#include <ctype.h> // isdigit
2732

0 commit comments

Comments
 (0)