From 2811cda9c67963f7877cf6fe784ee548bf22a0c1 Mon Sep 17 00:00:00 2001 From: smf- Date: Thu, 9 Sep 2021 12:55:56 +0100 Subject: fixed vs2019, broken by clang fix. --- scripts/src/osd/windows.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/src/osd/windows.lua b/scripts/src/osd/windows.lua index 9bd9b6cd5f6..2f77844d17a 100644 --- a/scripts/src/osd/windows.lua +++ b/scripts/src/osd/windows.lua @@ -119,9 +119,11 @@ project ("osd_" .. _OPTIONS["osd"]) MAME_DIR .. "src/osd/windows", } - buildoptions_cpp { - "-Wno-ignored-attributes",-- many instances in ImGui - } + if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then + buildoptions_cpp { + "-Wno-ignored-attributes",-- many instances in ImGui + } + end files { MAME_DIR .. "src/osd/modules/render/d3d/d3dhlsl.cpp", -- cgit v1.2.3