Commit 7f5368f
committed
Modify the Rake compile task to exclude native:
- I know it feels kind of a weird change as we only perform native
compilation on CI.
The issue is that RakeCompiler wasn't really meant to build fat gems
for native compilation. Native compilation with Rake Compiler was
meant for development purposes to compile the project and test it.
When the compilation kicks in, we build `3.1/foo.so` `3.2/foo.so`
but we also end up with a `foo.so` that gets compiled at
`lib/foo.so`.
The workaround we do to make Rake Compiler build fat gems natively
is hacking it by pretending we are doing cross platform compilation
using `ext.platform = [RUBY_PLATFORM]`.1 parent bac9d2e commit 7f5368f
2 files changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| |||
0 commit comments