aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-01-24 16:47:05 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-01-24 16:47:05 +0200
commitc236ae6575960189ac9d4245969aceef04acfffc (patch)
treec065bb95173bcfbe2bd73de4fe9c4700b0a37627 /meson.build
parentMerge branch 'bookmarks-subcommand' (diff)
downloadsmolbote-c236ae6575960189ac9d4245969aceef04acfffc.tar.xz
Move compiler flags to meson.build from pkgbuild
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 5e50801..2e7ec72 100644
--- a/meson.build
+++ b/meson.build
@@ -31,6 +31,7 @@ add_project_arguments(cxx.get_supported_arguments([
'-ffunction-sections', # Place each function into its own section, better ASLR but larger executables
'-fstack-protector-all', # Emit code to check for buffer overflows on all functions
'-fstack-clash-protection', # Emit code to check for stack clash attacks
+ '-flto=4',
'-mspeculative-load-hardening', # Spectre v1 mitigation