From 06f3c006c3e355fbbd2c05bd3641252197bd3651 Mon Sep 17 00:00:00 2001 From: Micon Frink Date: Wed, 28 Oct 2020 06:31:32 +0000 Subject: [PATCH] added a ternary to check for cl so that we don't have problems with Linux absolute paths... --- generator/generator.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/generator.lua b/generator/generator.lua index e68498f..2796776 100644 --- a/generator/generator.lua +++ b/generator/generator.lua @@ -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("\"", "\\\"") .. "\"";