unbreak vs2019 after 822e051896 (nw)

This commit is contained in:
smf- 2020-04-25 03:40:45 +01:00
parent 4a6bf4e1c0
commit 42e8d29742

View File

@ -745,7 +745,7 @@ end
"_7ZIP_ST",
}
if string.find(_OPTIONS["gcc"], "clang") and str_to_version(_OPTIONS["gcc_version"]) >= 100000 then
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") and str_to_version(_OPTIONS["gcc_version"]) >= 100000 then
buildoptions_c {
"-Wno-misleading-indentation",
}
@ -1512,7 +1512,7 @@ project "portaudio"
}
end
end
if string.find(_OPTIONS["gcc"], "clang") and version >= 100000 then
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") and version >= 100000 then
buildoptions_c {
"-Wno-misleading-indentation",
}