-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flag to run scripts with generational GC disabled
- Loading branch information
1 parent
1e2738c
commit 64b5dea
Showing
11 changed files
with
182 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.3.1 |
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,37 +1,5 @@ | ||
require_relative("./flags") | ||
require_relative("./mruby_shared_config") | ||
|
||
mruby_engine_gembox_path = Pathname.new(__FILE__).dirname.join("mruby_engine") | ||
|
||
MRuby::Build.new do |conf| | ||
toolchain(:gcc) | ||
|
||
enable_debug | ||
|
||
conf.gembox(mruby_engine_gembox_path) | ||
conf.gem(core: "mruby-bin-mirb") | ||
conf.gem(core: 'mruby-bin-mruby') | ||
|
||
conf.bins = ["mrbc", "mruby"] | ||
|
||
conf.cc do |cc| | ||
cc.flags += %w(-fPIC) | ||
cc.flags += Flags.cflags | ||
cc.defines += Flags.io_safe_defines | ||
end | ||
end | ||
|
||
MRuby::CrossBuild.new("sandbox") do |conf| | ||
toolchain(:gcc) | ||
|
||
enable_debug | ||
|
||
conf.gembox(mruby_engine_gembox_path) | ||
|
||
conf.bins = [] | ||
|
||
conf.cc do |cc| | ||
cc.flags += %w(-fPIC) | ||
cc.flags += Flags.cflags | ||
cc.defines += Flags.defines | ||
end | ||
end | ||
build(Flags.io_safe_defines) | ||
crossbuild("sandbox", Flags.defines) |
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,5 @@ | ||
require_relative("./flags") | ||
require_relative("./mruby_shared_config") | ||
|
||
build(Flags.io_safe_defines_with_no_gc) | ||
crossbuild("sandbox_no_gen_gc", Flags.defines_with_no_gc) |
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,41 @@ | ||
require_relative("./flags") | ||
|
||
MRUBY_ENGINE_GEMBOX_PATH = Pathname.new(__FILE__).dirname.join("mruby_engine") | ||
|
||
def build(defines) | ||
MRuby::Build.new do |conf| | ||
toolchain(:gcc) | ||
|
||
enable_debug | ||
|
||
conf.gembox(MRUBY_ENGINE_GEMBOX_PATH) | ||
conf.gem(core: "mruby-bin-mirb") | ||
conf.gem(core: 'mruby-bin-mruby') | ||
|
||
conf.bins = ["mrbc", "mruby"] | ||
|
||
conf.cc do |cc| | ||
cc.flags += %w(-fPIC) | ||
cc.flags += Flags.cflags | ||
cc.defines += defines | ||
end | ||
end | ||
end | ||
|
||
def crossbuild(directory, defines) | ||
MRuby::CrossBuild.new(directory) do |conf| | ||
toolchain(:gcc) | ||
|
||
enable_debug | ||
|
||
conf.gembox(MRUBY_ENGINE_GEMBOX_PATH) | ||
|
||
conf.bins = [] | ||
|
||
conf.cc do |cc| | ||
cc.flags += %w(-fPIC) | ||
cc.flags += Flags.cflags | ||
cc.defines += defines | ||
end | ||
end | ||
end |
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