Go: Properly escape dash in tracing-config.lua

Previously, the pattern didn't match what it was intended to match.
This commit is contained in:
Cornelius Riemenschneider
2022-06-20 14:29:50 +02:00
committed by GitHub
parent fc7e0ec193
commit d3c7395fa2

View File

@@ -1,7 +1,7 @@
function RegisterExtractorPack()
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
local patterns = {
CreatePatternMatcher({'^go-autobuilder$'}, MatchCompilerName, nil,
CreatePatternMatcher({'^go%-autobuilder$'}, MatchCompilerName, nil,
{trace = false}),
CreatePatternMatcher({'^go$'}, MatchCompilerName, goExtractor, {
prepend = {'--mimic', '${compiler}'},
@@ -12,7 +12,7 @@ function RegisterExtractorPack()
if OperatingSystem == 'windows' then
goExtractor = goExtractor .. 'go-extractor.exe'
patterns = {
CreatePatternMatcher({'^go-autobuilder%.exe$'}, MatchCompilerName,
CreatePatternMatcher({'^go%-autobuilder%.exe$'}, MatchCompilerName,
nil, {trace = false}),
CreatePatternMatcher({'^go%.exe$'}, MatchCompilerName, goExtractor,
{