added a ternary to check for cl so that we don't have problems with Linux absolute paths...

This commit is contained in:
Micon Frink
2020-10-28 06:31:32 +00:00
parent 5c469cca4e
commit 06f3c006c3

View File

@@ -13,7 +13,7 @@ local CPRE,CTEST
--get implementations
local implementations = {}
for i=3,#script_args do
if script_args[i]:match("^[-/]") then
if script_args[i]:match(COMPILER == cl and "^/" or "^%-") then
local key, value = script_args[i]:match("^(.+)=(.+)$")
if key and value then
CFLAGS = CFLAGS .. " " .. key .. "=\"" .. value:gsub("\"", "\\\"") .. "\"";