Andreas Schneider
9c0875dd5d
cmake: Use -Wpedantic and remove -pedantic-errors
...
We get -Werror if -DPICKY_DEVELOPER=ON is set.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit bfd33ecf297f97bb4fcfd12f957d9aa7f0bf88f3)
2018-09-06 09:25:03 +02:00
Andreas Schneider
e1fbc02209
cmake: Add -fstack-clash-protection
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 9a3f43f4ee3ac8b57713f8fcd44b19ce7d3cf073)
2018-09-03 15:43:04 +02:00
Andreas Schneider
3c4403c400
cmake: Use -fstack-protector-strong if possible
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit fc212d73edb00bb174011b41502f32f436b7fae0)
2018-08-31 14:30:53 +02:00
Andreas Schneider
0db13661b4
cmake: Improve compiler flag detection
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit a97e227a9dc6f4bc62ac9b7045b6f9bc64537932)
2018-08-24 07:53:20 +02:00
Andreas Schneider
eb90325bed
cmake: Allow zero for variadic macro argument
...
This is also needed for clang.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 4ae7e35d9ce889d39a885081fec39bcee3b275aa)
2018-08-23 22:41:25 +02:00
Andreas Schneider
455b3a7865
cmake: Set -D_FORTIFY_SOURCE=2 if possible
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 5e9435924c547555185d70470096e4f3a72124a6)
2018-08-22 09:08:19 +02:00
Andreas Schneider
decbadda45
cmake: Add support for picky developer flags
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 8855a140cf801e03c0dcf0b5f9d0a8c22f0bd7b8)
2018-08-20 18:43:22 +02:00
Andreas Schneider
f00d780c16
cmake: Improve compiler flag detection
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit a9a99fb31f2b5b28a321b1637ed491ef0fdc9b2e)
2018-08-20 18:43:20 +02:00