From 241150071eef45c40553c36ae62b16b530007eff Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 8 Aug 2025 08:53:18 +0200 Subject: [PATCH 1/2] Add separate flag for creating pdb files with bcc64x, enable this by default for all configurations * docs/templates/bmake.txt: * templates/bmake.mpd: * templates/bmakedll.mpt: * templates/bmakedllexe.mpt: * templates/bmakelib.mpt: * templates/bmakelibexe.mpt: --- docs/templates/bmake.txt | 1 + templates/bmake.mpd | 2 +- templates/bmakedll.mpt | 4 ++++ templates/bmakedllexe.mpt | 4 ++++ templates/bmakelib.mpt | 2 ++ templates/bmakelibexe.mpt | 2 ++ 6 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/templates/bmake.txt b/docs/templates/bmake.txt index cce39ca6e..e91c1b05f 100644 --- a/docs/templates/bmake.txt +++ b/docs/templates/bmake.txt @@ -22,6 +22,7 @@ exeflags = Linker flags that are required to create an executable. libflags = Flags that are required to create a static library. link = The name of the tool used to create dynamic libraries and executables. obj_ext = The extension given to object files. +pdbl = If this boolean template variable is set, the Linker Debugging property "Generate Program Database File" will be set according to the project target. rc = The name of the resource compiler. rcdir = The list of directories to be searched when locating resource files. This is determined by the BMakeProjectCreator. startup_letter = The text used during the creation of the startup object file. diff --git a/templates/bmake.mpd b/templates/bmake.mpd index a8e1e3024..5b27cc0b7 100644 --- a/templates/bmake.mpd +++ b/templates/bmake.mpd @@ -52,7 +52,7 @@ DEBUG_EXT = <%debug_ext%> <%foreach(configurations)%> !ifdef <%normalize(uc(configuration))%> OCFLAGS = <%if(optimize)%>$(OPTIMIZE_CFLAGS) <%else%><%if(debug_prj)%>$(DEBUG_CFLAGS)<%foreach(debug_macros)%> -D<%debug_macro%><%endfor%><%endif%><%endif%><%foreach(defines)%> -D<%define%><%endfor%><%if(!debug_prj)%> $(RELEASE_CFLAGS)<%endif%> -LFLAGS =<%if(debug_prj)%> $(PDB_FLAGS)<%endif%> +LFLAGS =<%if(pdbl)%> $(PDB_FLAGS)<%endif%> CFG_DIR = <%intermediate_dir%>\\ LIBMODIFIER = <%if(use_lib_modifier)%><%lib_modifier%><%endif%> EXEMODIFIER = <%if(use_exe_modifier)%><%lib_modifier%><%endif%> diff --git a/templates/bmakedll.mpt b/templates/bmakedll.mpt index 287183ff6..6b030462d 100644 --- a/templates/bmakedll.mpt +++ b/templates/bmakedll.mpt @@ -9,6 +9,7 @@ Release { defines = NDEBUG intermediate_dir = Release lib_modifier = _br + pdbl = 1 } Debug { @@ -17,6 +18,7 @@ Debug { defines = _DEBUG intermediate_dir = Debug lib_modifier = _bd + pdbl = 1 } Static Release { @@ -26,6 +28,7 @@ Static Release { intermediate_dir = Static_Release lib_modifier = _bsr type_is_static = 1 + pdbl = 1 } Static Debug { @@ -36,6 +39,7 @@ Static Debug { intermediate_dir = Static_Debug lib_modifier = _bsd type_is_static = 1 + pdbl = 1 } conditional_include "user_bmakedll" diff --git a/templates/bmakedllexe.mpt b/templates/bmakedllexe.mpt index b710049e0..bcd1c14b5 100644 --- a/templates/bmakedllexe.mpt +++ b/templates/bmakedllexe.mpt @@ -10,6 +10,7 @@ Release { output_dir = Release intermediate_dir = Release lib_modifier = _br + pdbl = 1 } Debug { @@ -18,6 +19,7 @@ Debug { defines = _DEBUG intermediate_dir = Debug lib_modifier = _bd + pdbl = 1 } Static Release { @@ -27,6 +29,7 @@ Static Release { intermediate_dir = Static_Release lib_modifier = _bsr type_is_static = 1 + pdbl = 1 } Static Debug { @@ -37,6 +40,7 @@ Static Debug { intermediate_dir = Static_Debug lib_modifier = _bsd type_is_static = 1 + pdbl = 1 } conditional_include "user_bmakedllexe" diff --git a/templates/bmakelib.mpt b/templates/bmakelib.mpt index 7407e201c..c33d4087b 100644 --- a/templates/bmakelib.mpt +++ b/templates/bmakelib.mpt @@ -6,6 +6,7 @@ Release { defines = NDEBUG intermediate_dir = Static_Release lib_modifier = _bsr + pdbl = 1 } Debug { @@ -14,6 +15,7 @@ Debug { defines = _DEBUG intermediate_dir = Static_Debug lib_modifier = _bsd + pdbl = 1 } conditional_include "user_bmakelib" diff --git a/templates/bmakelibexe.mpt b/templates/bmakelibexe.mpt index 495884d5f..a113b4c2c 100644 --- a/templates/bmakelibexe.mpt +++ b/templates/bmakelibexe.mpt @@ -9,6 +9,7 @@ Release { output_dir = Static_Release intermediate_dir = Static_Release lib_modifier = _bsr + pdbl = 1 } Debug { @@ -18,6 +19,7 @@ Debug { output_dir = Static_Debug intermediate_dir = Static_Debug lib_modifier = _bsd + pdbl = 1 } conditional_include "user_bmakelibexe" From ee1800584ff1b9687adae19debda7059ec1e478f Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 8 Aug 2025 09:01:34 +0200 Subject: [PATCH 2/2] Removed space * docs/templates/bmake.txt: --- docs/templates/bmake.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates/bmake.txt b/docs/templates/bmake.txt index e91c1b05f..d5aa1fb63 100644 --- a/docs/templates/bmake.txt +++ b/docs/templates/bmake.txt @@ -22,7 +22,7 @@ exeflags = Linker flags that are required to create an executable. libflags = Flags that are required to create a static library. link = The name of the tool used to create dynamic libraries and executables. obj_ext = The extension given to object files. -pdbl = If this boolean template variable is set, the Linker Debugging property "Generate Program Database File" will be set according to the project target. +pdbl = If this boolean template variable is set, the Linker Debugging property "Generate Program Database File" will be set according to the project target. rc = The name of the resource compiler. rcdir = The list of directories to be searched when locating resource files. This is determined by the BMakeProjectCreator. startup_letter = The text used during the creation of the startup object file.