From 306c433389fe483d55a057d021d1a7fc7d120ee4 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 15 Oct 2018 11:29:24 +0200 Subject: Remove -march and -mtune from default release flags --- baseconfig | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'baseconfig') diff --git a/baseconfig b/baseconfig index 5827dbc..7ca05c9 100644 --- a/baseconfig +++ b/baseconfig @@ -3,22 +3,23 @@ mainmenu "smolbote configuration" comment "Build" menu "Compiler settings" config CXX_FLAGS - string "Compiler flags" + string "Compiler Flags" help Compiler flags that should be applied to both Debug and Release builds. - default "-fPIE -pipe -fstack-protector-strong -fno-plt" + default "-pipe -fstack-protector-strong -fno-plt -fPIE" config CXX_FLAGS_DEBUG - string "Debug flags" + string "Debug Flags" help - Compiler flags that should be applied to Debug builds. + Compiler flags that should be applied to Debug builds. These flags, together with the Compiler Flags, are appended to CMAKE_CXX_FLAGS_DEBUG. default "" config CXX_FLAGS_RELEASE - string "Release flags" + string "Release Flags" help - Compiler flags that should be applied to Release builds. - default "-march=native -mtune=native -O3" + Compiler flags that should be applied to Release builds. These flags, together with the Compiler Flags, are appended to CMAKE_CXX_FLAGS_RELEASE. + - -march=native -mtune=native will build executables that are optimized for the build environment's native arch. + default "" endmenu menu "Install paths" -- cgit v1.2.1