Navigation Menu

Skip to content

Commit

Permalink
Update genie.lua for full VS2017 compatibility
Browse files Browse the repository at this point in the history
Change _ACTION match to include vs2017 for ForceCPP

Generalize remaining configuration case "vs2015" to "vs*" for
disabling warnings
  • Loading branch information
cancel committed Dec 8, 2016
1 parent 427b067 commit 353451c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genie.lua
Expand Up @@ -63,7 +63,7 @@ function lay_project(project_name, as_build_type, src_file)
--files { "**.h", "**.c" }
files { "**.h", src_file }

if _ACTION == "vs2015" then
if _ACTION == "vs2015" or _ACTION == "vs2017" then
-- Build as C++ even with .c filename extension, because we
-- need [] operator for our vector types (GCC provides this in
-- C with vector_size special attribute, but need operator
Expand All @@ -79,7 +79,7 @@ function lay_project(project_name, as_build_type, src_file)
configuration { "float" }
defines { "LAY_FLOAT=1" }

configuration { "vs2015", "windows" }
configuration { "vs*", "windows" }
defines { "_CRT_SECURE_NO_WARNINGS" }
buildoptions {
-- Disable "unreferenced formal parameter" warning
Expand Down

0 comments on commit 353451c

Please sign in to comment.