Commit a25a3c9
committed
INIT: mkreq: eliminate error message scanning hack
This resolves a TODO by removing the clever AT&T hack to scan for
an error message containing an arbitrary library name, which was
evidently a workaround for compilers that exit with status 0
(success) on error.
I'm pretty sure that in 2026 it's safe to assume that compilers
exit with a nonzero exit status on error.
But even if there is still a compiler that exits with status 0 on
error, we now attempt to actually run the test binary. This should
catch any failure to compile/link that wasn't caught by the exit
status check, provided we delete any previous test binary first.1 parent 606ca5a commit a25a3c9
1 file changed
Lines changed: 5 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 52 | | |
59 | | - | |
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
72 | 63 | | |
73 | 64 | | |
74 | 65 | | |
| |||
0 commit comments