From aabd16d1a74a1c2be151e16bda9ff55af4f0beba Mon Sep 17 00:00:00 2001 From: Thomas W Rodgers <rodgert@twrodgers.com> Date: Thu, 12 Jan 2023 11:54:59 -0800 Subject: [PATCH] Adjust options for Fedora package build --- src/tools/gcc.jam | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index 14be886f5..9dd0ba0a6 100644 --- a/tools/build/src/tools/gcc.jam +++ b/tools/build/src/tools/gcc.jam @@ -511,7 +511,7 @@ rule compile.fortran ( targets * : sources * : properties * ) actions compile.c++ bind PCH_FILE { - "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -include"$(PCH_FILE:S=)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -c -o "$(<:W)" "$(>:W)" + "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -include"$(PCH_FILE:S=)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -c -o "$(<:W)" "$(>:W)" } actions compile.c bind PCH_FILE @@ -521,7 +521,7 @@ actions compile.c bind PCH_FILE actions compile.c++.preprocess bind PCH_FILE { - "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -include"$(PCH_FILE:S=)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" "$(>:W)" -E >"$(<:W)" + "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -include"$(PCH_FILE:S=)" $(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" "$(>:W)" -E >"$(<:W)" } actions compile.c.preprocess bind PCH_FILE @@ -624,22 +624,22 @@ actions compile.c.pch ### # Declare flags and action for compilation. -toolset.flags gcc.compile OPTIONS <optimization>off : -O0 ; -toolset.flags gcc.compile OPTIONS <optimization>speed : -O3 ; -toolset.flags gcc.compile OPTIONS <optimization>space : -Os ; -toolset.flags gcc.compile OPTIONS <optimization>minimal : -O1 ; -toolset.flags gcc.compile OPTIONS <optimization>debug : -Og ; - -toolset.flags gcc.compile OPTIONS <inlining>off : -fno-inline ; -toolset.flags gcc.compile OPTIONS <inlining>on : -Wno-inline ; -toolset.flags gcc.compile OPTIONS <inlining>full : -finline-functions -Wno-inline ; - -toolset.flags gcc.compile OPTIONS <warnings>off : -w ; -toolset.flags gcc.compile OPTIONS <warnings>on : -Wall ; -toolset.flags gcc.compile OPTIONS <warnings>all : -Wall ; -toolset.flags gcc.compile OPTIONS <warnings>extra : -Wall -Wextra ; -toolset.flags gcc.compile OPTIONS <warnings>pedantic : -Wall -Wextra -pedantic ; -toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : -Werror ; +toolset.flags gcc.compile OPTIONS <optimization>off : ; +toolset.flags gcc.compile OPTIONS <optimization>speed : ; +toolset.flags gcc.compile OPTIONS <optimization>space : ; +toolset.flags gcc.compile OPTIONS <optimization>minimal : ; +toolset.flags gcc.compile OPTIONS <optimization>debug : ; + +toolset.flags gcc.compile OPTIONS <inlining>off : ; +toolset.flags gcc.compile OPTIONS <inlining>on : ; +toolset.flags gcc.compile OPTIONS <inlining>full : ; + +toolset.flags gcc.compile OPTIONS <warnings>off : ; +toolset.flags gcc.compile OPTIONS <warnings>on : ; +toolset.flags gcc.compile OPTIONS <warnings>all : ; +toolset.flags gcc.compile OPTIONS <warnings>extra : ; +toolset.flags gcc.compile OPTIONS <warnings>pedantic : ; +toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : ; toolset.flags gcc.compile OPTIONS <debug-symbols>on : -g ; toolset.flags gcc.compile OPTIONS <profiling>on : -pg ; -- 2.39.0