Skip to content

Commit 03a0de7

Browse files
ox-ruby: refine build (#14093)
The build script is still failing and I'm a bit unsure why. Adding some debug statements to show more information. Signed-off-by: David Korczynski <david@adalogics.com>
1 parent 69dabe3 commit 03a0de7

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

projects/ox-ruby/build.sh

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@ cd $SRC/ox-ruby
2222
gem build
2323
RUZZY_DEBUG=1 gem install --development --verbose *.gem
2424

25-
for fuzz_target_path in $SRC/harnesses/fuzz_*.rb; do
26-
ruzzy-build "$fuzz_target_path"
27-
done
25+
#for fuzz_target_path in $SRC/harnesses/fuzz_*.rb; do
26+
# ruzzy-build "$fuzz_target_path"
27+
#done
28+
29+
cp $SRC/harnesses/fuzz_parse.rb $OUT/
30+
31+
echo """#!/usr/bin/env bash
32+
# LLVMFuzzerTestOneInput for fuzzer detection.
33+
this_dir=\$(dirname \"\$0\")
34+
35+
echo "GEM_HOME FIRST: \$GEM_HOME"
36+
export GEM_HOME=\$this_dir/fuzz-gem
37+
38+
echo "GEM_PATH: \$GEM_PATH"
39+
echo "GEM_HOME: \$GEM_HOME"
40+
ls -la \$GEM_HOME
41+
42+
43+
ruzzy \$this_dir/fuzz_parse.rb \$@""" > $OUT/fuzz_parse
44+
45+
chmod +x $OUT/fuzz_parse

0 commit comments

Comments
 (0)