aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-02-10 14:17:09 +0100
committerdec05eba <dec05eba@protonmail.com>2021-02-10 14:17:09 +0100
commite59d08b33daca53a53e44e0705db3e5d2fcc2817 (patch)
tree741ee31d691ad2769905d20ad782b188cfc7b187 /include
parentf4d083bf64d1a2b4f603d0f5fa96f3ac4e7db1fe (diff)
Disable flto by default and add --flto to enable it
Diffstat (limited to 'include')
-rw-r--r--include/Conf.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Conf.hpp b/include/Conf.hpp
index 12164ea..eb922bc 100644
--- a/include/Conf.hpp
+++ b/include/Conf.hpp
@@ -230,7 +230,8 @@ namespace sibs
zigTestAllFiles(false),
packaging(false),
bundling(false),
- platform(SYSTEM_PLATFORM)
+ platform(SYSTEM_PLATFORM),
+ use_flto(false)
{
cmakeDirGlobal = projectPath;
switch(optimizationLevel)
@@ -430,6 +431,7 @@ namespace sibs
std::string versionStr;
PackageVersion version;
Platform platform;
+ bool use_flto;
std::vector<std::string> includeDirs;
std::vector<std::string> exposeIncludeDirs;
std::vector<std::string> ignoreDirs;