michaelforney / swc

a library for making a simple Wayland compositor
MIT License
614 stars 52 forks source link

Update config.mk #35

Closed DmitryHetman closed 7 years ago

michaelforney commented 8 years ago

Why? The point of config.mk is that you edit it (or provide your own version) with the flags you want.

DmitryHetman commented 8 years ago

GCC and Clang support this optimizations

michaelforney commented 8 years ago

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.

DmitryHetman commented 8 years ago

Ok -march=native is not good for creating .deb .rpm .pac packages for different PC, but -02 should be default.

pickfire commented 7 years ago

Shouldn't swc recognise CFLAGS? Like it can use CFLAGS ?= or CFLAGS +=?

michaelforney commented 7 years ago

pickfire: I removed CFLAGS from the default config.mk to address your concern.