Skip to content

Commit 9346de8

Browse files
authored
Merge pull request #234 from jwillemsen/jwi-bmakelanguagestandard
Add support for specifiying a language standard to bmake
2 parents 6d96a69 + 628e866 commit 9346de8

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
@@ -97,7 +97,8 @@ DLL_EXT = <%dll_ext%>
9797
EXE_EXT = <%exe_ext%>
9898
RC = <%rc%>
9999
LIBFLAGS = <%libflags%>
100-
CCFLAGS = $(CC_CFLAGS)<%if(type_is_binary)%> $(BINARY_FLAGS)<%endif%><%if(compile_flags)%> <%compile_flags%><%endif%>
100+
CCFLAGS = $(CC_CFLAGS)<%if(type_is_binary)%> $(BINARY_FLAGS)<%endif%><%if(compile_flags)%> <%compile_flags%><%endif%><%if(languagestandard)%> -std=<%languagestandard%><%endif%>
101+
101102

102103
!ifndef MPC_NUMBER_OF_PROCESSORS
103104
MPC_NUMBER_OF_PROCESSORS = 0

0 commit comments

Comments
 (0)