From 056fdc89c5c02b189d6b3ae52646b703ef999790 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 4 Nov 2015 14:16:42 +0100 Subject: [PATCH] fix VS build (nw) --- scripts/src/3rdparty.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index 66e346531eb..1b94702544b 100644 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -118,7 +118,7 @@ project "softfloat" "-Wno-sign-compare", } - if string.find(_OPTIONS["gcc"], "clang") then + if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then buildoptions { "-Wno-tautological-compare", } @@ -258,7 +258,7 @@ project "flac" "-Wno-unused-function", "-O0", } - if string.find(_OPTIONS["gcc"], "clang") then + if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then buildoptions { "-Wno-enum-conversion", }