Skip to content

Commit d8ba007

Browse files
committed
Use pdb flags with ld.lld
* templates/bmake.mpd: * templates/bmakecommon.mpt:
1 parent 1b8cdf5 commit d8ba007

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

templates/bmake.mpd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
!ifdef <%normalize(uc(compiler))%>
1111
CC = <%cc%>
1212
OPTIMIZE_CFLAGS = <%optimize_flags%>
13+
PDB_FLAGS = <%pdb_flags%>
1314
DEBUG_CFLAGS = <%debug_flags%>
1415
RELEASE_CFLAGS = <%release_flags%>
1516
CC_CFLAGS = <%ccflags%>
@@ -129,7 +130,7 @@ OBJFILES = \
129130
LFLAGS = \
130131
$(LINKER_PATHS) \
131132
<%if(debug_prj)%>
132-
-v \
133+
-v $(PDB_FLAGS) \
133134
-r \
134135
<%endif%>
135136
<%if(linkflags)%>

templates/bmakecommon.mpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ bcc32 {
1818
debug_flags = -v -y -Od -vi- -k
1919
release_flags =
2020
optimize_flags = -O1
21+
pdb_flags =
2122
warn_flags = -w-rvl -w-rch -w-ccc -w-obs -w-aus -w-pia -w-inl -w-mls
2223
cc = bcc32
2324
thr_flags = -tWM
@@ -44,6 +45,7 @@ bcc32c {
4445
debug_flags = -Od -vi-
4546
release_flags =
4647
optimize_flags = -O3
48+
pdb_flags =
4749
warn_flags =
4850
cc = bcc32c
4951
binary_flags = -tR -tD
@@ -69,6 +71,7 @@ bcc64 {
6971
debug_flags = -g -O0
7072
release_flags =
7173
optimize_flags = -O3
74+
pdb_flags =
7275
warn_flags =
7376
cc = bcc64
7477
binary_flags = -tR -tD
@@ -94,6 +97,7 @@ bcc64x {
9497
debug_flags = -g -O0
9598
release_flags = -Wno-ignored-attributes
9699
optimize_flags = -O3
100+
pdb_flags = -pdb $(OUTPUTDIR)$(NAME).pdb
97101
warn_flags =
98102
cc = bcc64x
99103
binary_flags = -tR -tD

0 commit comments

Comments
 (0)