Commit e2230af
committed
Avoid loading source cgi/escape.rb with baseruby in enc/make_encmake.rb
Only add the source lib directory to $LOAD_PATH when running with
miniruby, which needs it for the standard library (erb, fileutils,
etc.). When running with baseruby (detected via CROSS_COMPILING
defined by fake.rb), its own stdlib is already available and adding
the source lib causes warnings with -w due to loading both
baseruby's cgi/escape.so and the source cgi/escape.rb via erb.1 parent c46fe31 commit e2230af
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
0 commit comments