Commit 8609fbf
committed
BaseTools/Source/C: Remove duplicate -fshort-wchar
`-fshort-wchar -flto -DUSING_LTO` was added via CPPFLAGS to all relevant
uses of gcc and g++ in commit 2f61ab9.
However CFLAGS, as defined in the lines above that change, is never
consumed without CPPFLAGS, therefore `-fshort-wchar` can be removed from
CFLAGS to avoid it appearing twice in every call to gcc which uses CFLAGS.
Note that the affected files within BaseTools/Source/C (those that
include the changed file, and all those that those include) are:
```
Makefiles/app.makefile
Makefiles/lib.makefile
GNUmakefile
VfrCompile/GNUmakefile
Makefiles/footer.makefile
Makefiles/header.makefile
```
Note also that in VfrCompile/GNUmakefile g++ is affected by CPPFLAGS,
but not CXXFLAGS.
Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>1 parent 80adbac commit 8609fbf
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments