Commit 6c1c11b
authored
Do no consider warnings fatal in CPU Jitter for LTO build (#2769)
At the moment, CPU Jitter source code needs to disable all optimizations.
This means we can't inherit FORTITY_SOURCE and we therefore undefine
the flag through U_FORTIFY_SOURCE. If one were to use annobin as a plugin
and, simultaneously use LTO, annobin will emit a warning if FORTIFY_SOURCE
is undefined. This is fatal if all warnings are treated as errors.
The correct signal to use for below is annobin. But since we know that
annobin is not necessarily being enabled through -fplugin, match with LTO
and disable turning warnings into errors. This is also kinda fragile; LTO
could be defined through other means similar to annobin. But it's what we
have to work with atm.1 parent 2900818 commit 6c1c11b
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
35 | 51 | | |
36 | 52 | | |
37 | 53 | | |
| |||
0 commit comments