From 73beb0721346fc588e9629f1b5fc668072ecc71f Mon Sep 17 00:00:00 2001 From: arbee Date: Tue, 1 May 2018 21:40:43 -0400 Subject: don't use C++ flags on plain C files (nw) --- scripts/genie.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/genie.lua') diff --git a/scripts/genie.lua b/scripts/genie.lua index 1e232c1187c..c92a7f2d979 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1038,9 +1038,11 @@ end if (version >= 80000) then buildoptions { "-Wno-format-overflow", -- try machine/bfm_sc45_helper.cpp in GCC 8.0.1, among others - "-Wno-class-memaccess", -- many instances in ImGui and BGFX "-Wno-stringop-truncation", -- ImGui again } + buildoptions_cpp { + "-Wno-class-memaccess", -- many instances in ImGui and BGFX + } end end end -- cgit v1.2.3-70-g09d2