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
committed by Victor Bombi
parent be7bb9a72e
commit 3f2e6f40df

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("\"", "\\\"") .. "\"";