Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 3 | Index: b/gen-cc |
| 4 | =================================================================== |
| 5 | --- a/gen-cc |
| 6 | +++ b/gen-cc |
| 7 | @@ -15,6 +15,11 @@ |
| 8 | shift |
| 9 | shift |
| 10 | |
| 11 | + echo $CC \$MODE -o \$BASE.o \$BASE.$EXT \\ |
| 12 | + -MMD -MF \$DEPFILE -MP -MQ \$BASE.o \\ |
| 13 | + $CPPFLAGS \\ |
| 14 | + $CFLAGS \\ |
| 15 | + "\$@" |
| 16 | $CC \$MODE -o \$BASE.o \$BASE.$EXT \\ |
| 17 | -MMD -MF \$DEPFILE -MP -MQ \$BASE.o \\ |
| 18 | $CPPFLAGS \\ |
| 19 | Index: b/wvrules-posix.mk |
| 20 | =================================================================== |
| 21 | --- a/wvrules-posix.mk |
| 22 | +++ b/wvrules-posix.mk |
| 23 | @@ -35,11 +35,6 @@ |
| 24 | # Default compiler we use for linking |
| 25 | WVLINK_CC = $(CXX) |
| 26 | |
| 27 | -ifneq ("$(enable_optimization)", "no") |
| 28 | - CXXFLAGS+=-O2 |
| 29 | - CFLAGS+=-O2 |
| 30 | -endif |
| 31 | - |
| 32 | ifneq ("$(enable_warnings)", "no") |
| 33 | CXXFLAGS+=-Wall -Woverloaded-virtual |
| 34 | CFLAGS+=-Wall |