diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index 2e029d1c050..ce9a950dad1 100644 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -615,7 +615,7 @@ project "bgfx" if _OPTIONS["targetos"]=="windows" then local version = str_to_version(_OPTIONS["gcc_version"]) - if string.find(_OPTIONS["gcc"], "clang") then + if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then buildoptions { "-Wno-unknown-attributes", "-Wno-missing-braces",