forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit29180e5
committed
Eliminate parallel-make hazard in ecpg/preproc.
Re-making ecpglib's typename.o is dangerous because another make threadcould be doing that at the same time. While we've not heard fieldcomplaints traceable to this, it seems inevitable that it'd bite someoneeventually. Instead, symlink typename.c into the preproc directory andrecompile it there. That file is small enough that compiling it twiceisn't much of a penalty. Furthermore, this way we get a .o file that'smade without shlib CFLAGS, which seems cleaner.This requires adding more stuff to the module's -I list. The MSVCaspect of that is untested, but I'm sure the buildfarm will tell meif I got it wrong.Per a suggestion from Peter Eisentraut. Although this is theoreticallya bug fix, the lack of field reports makes me feel we needn't back-patch.Discussion:https://postgr.es/m/31364.1543511708@sss.pgh.pa.us1 parent3295f82 commit29180e5
File tree
3 files changed
+12
-6
lines changed- src
- interfaces/ecpg/preproc
- tools/msvc
3 files changed
+12
-6
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
|
Lines changed: 10 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
20 |
| - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 |
| |
22 | 25 |
| |
23 | 26 |
| |
24 | 27 |
| |
25 |
| - | |
| 28 | + | |
26 | 29 |
| |
27 | 30 |
| |
28 | 31 |
| |
| |||
36 | 39 |
| |
37 | 40 |
| |
38 | 41 |
| |
39 |
| - | |
40 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 |
| |
42 | 46 |
| |
43 | 47 |
| |
| |||
64 | 68 |
| |
65 | 69 |
| |
66 | 70 |
| |
| 71 | + | |
67 | 72 |
| |
68 | 73 |
| |
69 | 74 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
291 | 291 |
| |
292 | 292 |
| |
293 | 293 |
| |
| 294 | + | |
294 | 295 |
| |
295 | 296 |
| |
296 | 297 |
| |
|
0 commit comments
Comments
(0)