Commit a76e8b4
committed
Use a simpler workaround for platform mixup issue
When `linux` and `linux-musl` platforms are both defined in the cross_platform array, then a rake task is defined for `lib/2.7/pg_ext.so` which links to `linux` instead of `linux-musl`.
Disabling native tasks for the running ruby platform disables compiling `lib/2.7/pg_ext.so` completely.
The mixed platform rake definition otherwise leads to a rake dependency chain like this:
```
rake aborted!
Tasks: TOP => pkg/pg-1.6.0-x86_64-linux-musl.gem => lib/2.7/pg_ext.so => copy:pg_ext:x86_64-linux:2.7.8 => tmp/x86_64-linux/pg_ext/2.7.8/pg_ext.so => tmp/x86_64-linux/pg_ext/2.7.8/Makefile
```1 parent f181983 commit a76e8b4
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 73 | + | |
80 | 74 | | |
81 | 75 | | |
82 | 76 | | |
| |||
141 | 135 | | |
142 | 136 | | |
143 | 137 | | |
144 | | - | |
| 138 | + | |
145 | 139 | | |
146 | 140 | | |
147 | 141 | | |
| |||
0 commit comments