Skip to content

Commit ebd73a3

Browse files
committed
Removes deprecated language version flags
1 parent 4ac3770 commit ebd73a3

File tree

2 files changed

+1
-54
lines changed

2 files changed

+1
-54
lines changed

src/_premake_init.lua

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,6 @@
375375
"UndefinedIdentifiers",
376376
"WinMain", -- DEPRECATED
377377
"WPF",
378-
"C++11", -- DEPRECATED
379-
"C++14", -- DEPRECATED
380-
"C90", -- DEPRECATED
381-
"C99", -- DEPRECATED
382-
"C11", -- DEPRECATED
383378
},
384379
aliases = {
385380
FatalWarnings = { "FatalWarnings", "FatalCompileWarnings", "FatalLinkWarnings" },
@@ -1295,49 +1290,6 @@
12951290
end)
12961291

12971292

1298-
-- 31 January 2017
1299-
1300-
api.deprecateValue("flags", "C++11", 'Use `cppdialect "C++11"` instead',
1301-
function(value)
1302-
cppdialect "C++11"
1303-
end,
1304-
function(value)
1305-
cppdialect "Default"
1306-
end)
1307-
1308-
api.deprecateValue("flags", "C++14", 'Use `cppdialect "C++14"` instead',
1309-
function(value)
1310-
cppdialect "C++14"
1311-
end,
1312-
function(value)
1313-
cppdialect "Default"
1314-
end)
1315-
1316-
api.deprecateValue("flags", "C90", 'Use `cdialect "gnu90"` instead',
1317-
function(value)
1318-
cdialect "gnu90"
1319-
end,
1320-
function(value)
1321-
cdialect "Default"
1322-
end)
1323-
1324-
api.deprecateValue("flags", "C99", 'Use `cdialect "gnu99"` instead',
1325-
function(value)
1326-
cdialect "gnu99"
1327-
end,
1328-
function(value)
1329-
cdialect "Default"
1330-
end)
1331-
1332-
api.deprecateValue("flags", "C11", 'Use `cdialect "gnu11"` instead',
1333-
function(value)
1334-
cdialect "gnu11"
1335-
end,
1336-
function(value)
1337-
cdialect "Default"
1338-
end)
1339-
1340-
13411293
-- 13 April 2017
13421294

13431295
api.deprecateValue("flags", "WinMain", 'Use `entrypoint "WinMainCRTStartup"` instead',

website/docs/flags.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ flags { "flag_list" }
3636
| UndefinedIdentifiers | Warn if an undefined identifier is evaluated in an #if directive. |
3737
| WinMain | Use `WinMain()` as entry point for Windows applications, rather than the default `main()`. |
3838
| WPF | Mark the project as using Windows Presentation Framework, rather than WinForms. |
39-
| C++11 | Pass the c++11 flag to the gcc/clang compilers (msvc ignores this currently) |
40-
| C++14 | Pass the c++14 flag to the gcc/clang compilers (msvc ignores this currently) |
41-
| C90 | Pass the c90 flag to the gcc/clang compilers (msvc ignores this currently) |
42-
| C99 | Pass the c99 flag to the gcc/clang compilers (msvc ignores this currently) |
4339
| Component | Needs documentation |
4440
| DebugEnvsDontMerge | Needs documentation |
4541
| DebugEnvsInherit | Needs documentation |
@@ -57,7 +53,6 @@ flags { "flag_list" }
5753
| OptimizeSpeed | Needs documentation |
5854
| ReleaseRuntime | Needs documentation |
5955
| Symbols | Needs documentation |
60-
| C11 | Needs documentation |
6156
| Thumb | Needs documentation |
6257

6358
### Applies To ###
@@ -66,7 +61,7 @@ Project and file configurations, though not all flags are yet supported for file
6661

6762
### Availability ###
6863

69-
Unless otherwise noted, Premake 5.0 or later.
64+
Flags are currently available in Premake 5.0 beta3, but are considered deprecated. Future releases will be deprecating and removing all flags in favor of dedciated APIs.
7065

7166
### Examples ###
7267

0 commit comments

Comments
 (0)