forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit67427f1
committed
Support falling back to non-preferred readline implementation with meson
To build with -Dreadline=enabled one can use either readline orlibedit. The -Dlibedit_preferred flag is supposed to control the orderof names to lookup. This works fine when either both libraries arepresent or -Dreadline is set to auto. However, explicitly enablingreadline with only libedit present, but not setting libedit_preferred,or alternatively enabling readline with only readline present, butsetting libedit_preferred, too, are both broken. This is becausecc.find_library will throw an error for a not found dependency as soonas the first required dependency is checked, thus it's impossible tofallback to the alternative.Here we only check the second of the two dependencies forrequiredness, thus we only fail when none of the two can be found.Author: Wolfgang WaltherReviewed-by: Nazir Bilal Yavuz, Alvaro Herrera, Peter EisentrautReviewed-by: Tristan PartinDiscussion:https://www.postgresql.org/message-id/ca8f37e1-a2c3-40e2-91f6-59c3d3652ad4@technowledgy.deBackpatch: 16-, where meson support was added1 parentff34ae3 commit67427f1
1 file changed
+17
-6
lines changedLines changed: 17 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1149 | 1149 |
| |
1150 | 1150 |
| |
1151 | 1151 |
| |
1152 |
| - | |
1153 |
| - | |
1154 |
| - | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1155 | 1166 |
| |
1156 | 1167 |
| |
1157 |
| - | |
| 1168 | + | |
1158 | 1169 |
| |
1159 |
| - | |
1160 |
| - | |
| 1170 | + | |
| 1171 | + | |
1161 | 1172 |
| |
1162 | 1173 |
| |
1163 | 1174 |
| |
|
0 commit comments
Comments
(0)