summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-08-28 16:55:58 -0400
committerGitHub <noreply@github.com>2023-08-28 13:55:58 -0700
commit3b815ed7da8261f45b84dcde2c900934f7379dac (patch)
tree84bf9e833e4a572c43d87b545df1d5aba0cbb19b /tool
parentf726ad97406dc1c3bccfe74a53931552b9db755f (diff)
Add yarp/yarp_compiler.c (#8042)
* Add yarp/yarp_compiler.c as stencil for compiling YARP This commit adds yarp/yarp_compiler.c, and changes the sync script to ensure that yarp/yarp_compiler.c will not get overwritten * [Misc #119772] Create and expose RubyVM::InstructionSequence.compile_yarp This commit creates the stencil for a compile_yarp function, which we will continue to fill out. It allows us to check the output of compiled YARP code against compiled code without using YARP.
Notes
Notes: Merged-By: jemmaissroff
Diffstat (limited to 'tool')
-rwxr-xr-xtool/sync_default_gems.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index ad52c3faff..9f1bde06a8 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -400,6 +400,7 @@ module SyncDefaultGems
# We don't want to remove yarp_init.c, so we temporarily move it
# out of the yarp dir, wipe the yarp dir, and then put it back
mv("yarp/yarp_init.c", ".") if File.exist? "yarp/yarp_init.c"
+ mv("yarp/yarp_compiler.c", ".") if File.exist? "yarp/yarp_compiler.c"
rm_rf(%w[test/yarp yarp])
# Run the YARP templating scripts
@@ -417,6 +418,7 @@ module SyncDefaultGems
rm("yarp/extconf.rb")
mv("yarp_init.c", "yarp/")
+ mv("yarp_compiler.c", "yarp/")
else
sync_lib gem, upstream
end