Closed DmitryHetman closed 7 years ago
GCC and Clang support this optimizations
Sure, there are many optimization flags you can pass to gcc and clang. But why should swc choose those flags for you?
If you want to build with -O2 -march=native
, then put that into your config.mk
before building.
Ok -march=native is not good for creating .deb .rpm .pac packages for different PC, but -02 should be default.
Shouldn't swc recognise CFLAGS
? Like it can use CFLAGS ?=
or CFLAGS +=
?
pickfire: I removed CFLAGS
from the default config.mk
to address your concern.
Why? The point of
config.mk
is that you edit it (or provide your own version) with the flags you want.