2023-12-04 14:10:48 +00:00
|
|
|
From ebc90bc3e372dc8e5db21f79d2a79e4f5c4d01ee Mon Sep 17 00:00:00 2001
|
|
|
|
From: Patrick Palka <ppalka@redhat.com>
|
|
|
|
Date: Mon, 4 Dec 2023 09:24:20 -0500
|
2023-01-13 02:48:17 +00:00
|
|
|
Subject: [PATCH] Adjust options for Fedora package build
|
2022-04-29 20:37:45 +00:00
|
|
|
|
|
|
|
---
|
2023-12-04 14:10:48 +00:00
|
|
|
tools/build/src/tools/gcc.jam | 30 +++++++++++++++---------------
|
|
|
|
1 file changed, 15 insertions(+), 15 deletions(-)
|
2022-04-29 20:37:45 +00:00
|
|
|
|
2023-12-04 14:10:48 +00:00
|
|
|
diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
|
|
|
|
index 834f5e1bf..c753afc23 100644
|
2021-01-13 23:19:53 +00:00
|
|
|
--- a/tools/build/src/tools/gcc.jam
|
|
|
|
+++ b/tools/build/src/tools/gcc.jam
|
2023-12-04 14:10:48 +00:00
|
|
|
@@ -513,7 +513,7 @@ rule compile.fortran ( targets * : sources * : properties * )
|
2015-02-09 16:07:18 +00:00
|
|
|
|
|
|
|
actions compile.c++ bind PCH_FILE
|
|
|
|
{
|
2023-12-04 14:10:48 +00:00
|
|
|
- "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) $(INCLUDE-GCH)$(_)"$(PCH_FILE:S=)" $(INCLUDE-PCH)$(_)"$(PCH_FILE)" -I"$(INCLUDES)" -include$(_)"$(FORCE_INCLUDES)" -c -o "$(<)" "$(>:T)"
|
|
|
|
+ "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) $(INCLUDE-GCH)$(_)"$(PCH_FILE:S=)" $(INCLUDE-PCH)$(_)"$(PCH_FILE)" -I"$(INCLUDES)" -include$(_)"$(FORCE_INCLUDES)" -c -o "$(<)" "$(>:T)"
|
2015-02-09 16:07:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
actions compile.c bind PCH_FILE
|
2023-12-04 14:10:48 +00:00
|
|
|
@@ -523,7 +523,7 @@ actions compile.c bind PCH_FILE
|
2023-01-13 02:48:17 +00:00
|
|
|
|
2015-02-09 16:07:18 +00:00
|
|
|
actions compile.c++.preprocess bind PCH_FILE
|
|
|
|
{
|
2023-12-04 14:10:48 +00:00
|
|
|
- "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) $(INCLUDE-GCH)$(_)"$(PCH_FILE:S=)" $(INCLUDE-PCH)$(_)"$(PCH_FILE)" -I"$(INCLUDES)" -include$(_)"$(FORCE_INCLUDES)" "$(>:T)" -E >"$(<)"
|
|
|
|
+ "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) $(INCLUDE-GCH)$(_)"$(PCH_FILE:S=)" $(INCLUDE-PCH)$(_)"$(PCH_FILE)" -I"$(INCLUDES)" -include$(_)"$(FORCE_INCLUDES)" "$(>:T)" -E >"$(<)"
|
2015-02-09 16:07:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
actions compile.c.preprocess bind PCH_FILE
|
2023-12-04 14:10:48 +00:00
|
|
|
@@ -627,22 +627,22 @@ actions compile.c.pch
|
2018-01-23 15:33:35 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
# 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 ;
|
2023-01-13 02:48:17 +00:00
|
|
|
-toolset.flags gcc.compile OPTIONS <optimization>minimal : -O1 ;
|
2023-12-04 14:10:48 +00:00
|
|
|
+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 : -Og ;
|
|
|
|
|
2018-01-23 15:33:35 +00:00
|
|
|
-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 ;
|
2023-12-04 14:10:48 +00:00
|
|
|
+toolset.flags gcc.compile OPTIONS <inlining>off : ;
|
|
|
|
+toolset.flags gcc.compile OPTIONS <inlining>on : ;
|
|
|
|
+toolset.flags gcc.compile OPTIONS <inlining>full : ;
|
|
|
|
|
2018-01-23 15:33:35 +00:00
|
|
|
-toolset.flags gcc.compile OPTIONS <warnings>off : -w ;
|
|
|
|
-toolset.flags gcc.compile OPTIONS <warnings>on : -Wall ;
|
2020-05-28 07:44:23 +00:00
|
|
|
-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 ;
|
2023-01-13 02:48:17 +00:00
|
|
|
+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 : ;
|
2018-01-23 15:33:35 +00:00
|
|
|
|
|
|
|
toolset.flags gcc.compile OPTIONS <debug-symbols>on : -g ;
|
2020-05-28 07:44:23 +00:00
|
|
|
toolset.flags gcc.compile OPTIONS <profiling>on : -pg ;
|
2021-01-13 23:19:53 +00:00
|
|
|
--
|
2023-12-04 14:10:48 +00:00
|
|
|
2.43.0
|
2021-01-13 23:19:53 +00:00
|
|
|
|