Skip to content

Commit 67d7c16

Browse files
authored
Merge pull request DOCGroup#205 from jwillemsen/jwi-releasecflags
Add support for release_flags with bmake
2 parents efda8eb + 2009fd4 commit 67d7c16

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
@@ -11,6 +11,7 @@
1111
CC = <%cc%>
1212
OPTIMIZE_CFLAGS = <%optimize_flags%>
1313
DEBUG_CFLAGS = <%debug_flags%>
14+
RELEASE_CFLAGS = <%release_flags%>
1415
CC_CFLAGS = <%ccflags%>
1516
WARN_FLAGS = <%warn_flags%>
1617
BINARY_FLAGS = <%binary_flags%>
@@ -46,7 +47,7 @@ LINKER_EXE_ARGUMENTS = <%linker_exe_arguments%>
4647

4748
<%foreach(configurations)%>
4849
!ifdef <%normalize(uc(configuration))%>
49-
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%>
50+
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%>
5051
CFG_DIR = <%intermediate_dir%>\\
5152
LIBMODIFIER = <%if(use_lib_modifier)%><%lib_modifier%><%endif%>
5253
EXEMODIFIER = <%if(use_exe_modifier)%><%lib_modifier%><%endif%>

templates/bmakecommon.mpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ libflags = /C
1616

1717
bcc32 {
1818
debug_flags = -v -y -Od -vi- -k
19+
release_flags =
1920
optimize_flags = -O1
2021
warn_flags = -w-rvl -w-rch -w-ccc -w-obs -w-aus -w-pia -w-inl -w-mls
2122
cc = bcc32
@@ -41,6 +42,7 @@ linker_exe_arguments = $(EXEFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPU
4142

4243
bcc32c {
4344
debug_flags = -Od -vi-
45+
release_flags =
4446
optimize_flags = -O3
4547
warn_flags =
4648
cc = bcc32c
@@ -65,6 +67,7 @@ linker_exe_arguments = $(EXEFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPU
6567

6668
bcc64 {
6769
debug_flags = -g -O0
70+
release_flags =
6871
optimize_flags = -O3
6972
warn_flags =
7073
cc = bcc64
@@ -89,6 +92,7 @@ linker_exe_arguments = $(EXEFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPU
8992

9093
bcc64x {
9194
debug_flags = -g -O0
95+
release_flags = -Wno-ignored-attributes
9296
optimize_flags = -O3
9397
warn_flags =
9498
cc = bcc64x

0 commit comments

Comments
 (0)