Skip to content

Commit e9aef16

Browse files
committed
Add support for specifiying a language standard
* docs/templates/bmake.txt: * templates/bmake.mpd:
1 parent ee18005 commit e9aef16

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/templates/bmake.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ debug_prj = Indicates that the current template configuration is debug. This is
1919
defines = Macros that are specific to a particular configuration.
2020
dllflags = Linker flags that are required to create a dynamic library.
2121
exeflags = Linker flags that are required to create an executable.
22+
languagestandard = Which version of ISO C++ standard to compile against (c++14, c++17, c++20, c++23)
2223
libflags = Flags that are required to create a static library.
2324
link = The name of the tool used to create dynamic libraries and executables.
2425
obj_ext = The extension given to object files.

templates/bmake.mpd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ DLL_EXT = <%dll_ext%>
9696
EXE_EXT = <%exe_ext%>
9797
RC = <%rc%>
9898
LIBFLAGS = <%libflags%>
99-
CCFLAGS = $(CC_CFLAGS)<%if(type_is_binary)%> $(BINARY_FLAGS)<%endif%><%if(compile_flags)%> <%compile_flags%><%endif%>
99+
CCFLAGS = $(CC_CFLAGS)<%if(type_is_binary)%> $(BINARY_FLAGS)<%endif%><%if(compile_flags)%> <%compile_flags%><%endif%><%if(languagestandard)%> -std=<%languagestandard%><%endif%>
100+
100101

101102
<%if(use_vcl)%>
102103
STARTUP_LETTER = <%if(exename)%>w<%else%><%startup_letter%><%endif%>

0 commit comments

Comments
 (0)