Merge pull request #1752 from nickclark2016/issues/1751
Added C17/GNU17 support to gmake/gmake2 exporters
This commit is contained in:
commit
76d9e24da4
@ -762,6 +762,7 @@
|
||||
"gnu90",
|
||||
"gnu99",
|
||||
"gnu11",
|
||||
"gnu17"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -136,10 +136,12 @@
|
||||
["C90"] = "-std=c90",
|
||||
["C99"] = "-std=c99",
|
||||
["C11"] = "-std=c11",
|
||||
["C17"] = "-std=c17",
|
||||
["gnu89"] = "-std=gnu89",
|
||||
["gnu90"] = "-std=gnu90",
|
||||
["gnu99"] = "-std=gnu99",
|
||||
["gnu11"] = "-std=gnu11",
|
||||
["gnu17"] = "-std=gnu17"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -807,6 +807,13 @@
|
||||
test.contains({ }, gcc.getcxxflags(cfg))
|
||||
end
|
||||
|
||||
function suite.cflags_onC17()
|
||||
cdialect "C17"
|
||||
prepare()
|
||||
test.contains({ "-std=c17" }, gcc.getcflags(cfg))
|
||||
test.contains({ }, gcc.getcxxflags(cfg))
|
||||
end
|
||||
|
||||
function suite.cflags_ongnu89()
|
||||
cdialect "gnu89"
|
||||
prepare()
|
||||
@ -835,6 +842,13 @@
|
||||
test.contains({ }, gcc.getcxxflags(cfg))
|
||||
end
|
||||
|
||||
function suite.cflags_ongnu17()
|
||||
cdialect "gnu17"
|
||||
prepare()
|
||||
test.contains({ "-std=gnu17" }, gcc.getcflags(cfg))
|
||||
test.contains({ }, gcc.getcxxflags(cfg))
|
||||
end
|
||||
|
||||
function suite.cxxflags_onCppDefault()
|
||||
cppdialect "Default"
|
||||
prepare()
|
||||
|
@ -18,6 +18,7 @@ cdialect "value"
|
||||
* `gnu90`: GNU dialect of ISO C90
|
||||
* `gnu99`: GNU dialect of ISO C99
|
||||
* `gnu11`: GNU dialect of ISO C11
|
||||
* `gnu17`: GNU dialect of ISO C17
|
||||
|
||||
### Applies To ###
|
||||
|
||||
|
Reference in New Issue
Block a user