Skip to content

Commit 7edae6f

Browse files
committed
Fix gem install: serial mruby build and post-install message
Force -j1 on mruby build to avoid race condition where presym generation recreates directories during parallel CC compilation. Add post-install message.
1 parent 2d94f3b commit 7edae6f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

enclave.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Gem::Specification.new do |spec|
2525
spec.require_paths = ["lib"]
2626
spec.extensions = ["ext/enclave/extconf.rb"]
2727

28+
spec.post_install_message = "Enclave installed! Sandboxed Ruby for AI agents is ready to go."
29+
2830
spec.add_dependency "rake-compiler", "~> 1.2"
2931

3032
spec.add_development_dependency "rspec", "~> 3.0"

ext/enclave/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Build mruby from source
1010
unless File.exist?(File.join(mruby_build_dir, "lib", "libmruby.a"))
1111
puts "Building mruby..."
12-
system("cd #{mruby_dir} && MRUBY_CONFIG=#{build_config} rake -f #{mruby_dir}/Rakefile") || abort("mruby build failed")
12+
system("cd #{mruby_dir} && MRUBY_CONFIG=#{build_config} rake -f #{mruby_dir}/Rakefile -j1") || abort("mruby build failed")
1313
end
1414

1515
# mruby headers (only used by sandbox_core.c, not enclave.c)

0 commit comments

Comments
 (0)