summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-04-22 03:01:24 -0700
committerMichael Forney <mforney@mforney.org>2020-04-22 22:55:05 -0700
commitecc7a257aae1de11f4a5ca77402e3d12cf973061 (patch)
tree75fc63242555ae16b6a772ba319e4618a8a7c6fb
parentd36ce79317be230c6559f8e1abba88095f998fb1 (diff)
Use -Os instead of -O2 by default
-rw-r--r--.build.yml2
-rw-r--r--config.def.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/.build.yml b/.build.yml
index 4d3b821a..5465b513 100644
--- a/.build.yml
+++ b/.build.yml
@@ -30,7 +30,7 @@ tasks:
return {
builddir='out',
fs=dofile 'fs.lua',
- target={platform='x86_64-linux-musl', cflags='-O2 -pipe', ldflags='-s -static', mc='6m'},
+ target={platform='x86_64-linux-musl', cflags='-Os -pipe', ldflags='-s -static', mc='6m'},
host={cflags='-pipe', ldflags=''},
repo={path='$HOME/root-x86_64.git', flags='--bare', tag='tree', branch=os.getenv('SET')},
}
diff --git a/config.def.lua b/config.def.lua
index cc643e81..88f77f0c 100644
--- a/config.def.lua
+++ b/config.def.lua
@@ -15,7 +15,7 @@ return {
-- target toolchain and flags
target={
platform='x86_64-linux-musl',
- cflags='-O2 -pipe -fpie',
+ cflags='-Os -pipe -fpie',
ldflags='-s -static-pie',
pie=true
},