|
1 | 1 | function RegisterExtractorPack() |
2 | 2 | local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor' |
| 3 | + local patterns = { |
| 4 | + CreatePatternMatcher({'^go-autobuilder$'}, MatchCompilerName, nil, |
| 5 | + {trace = false}), |
| 6 | + CreatePatternMatcher({'^go$'}, MatchCompilerName, goExtractor, { |
| 7 | + prepend = {'--mimic', '${compiler}'}, |
| 8 | + order = ORDER_BEFORE |
| 9 | + }) |
| 10 | + |
| 11 | + } |
3 | 12 | if OperatingSystem == 'windows' then |
4 | | - goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe' |
| 13 | + goExtractor = goExtractor .. 'go-extractor.exe' |
| 14 | + patterns = { |
| 15 | + CreatePatternMatcher({'^go-autobuilder%.exe$'}, MatchCompilerName, |
| 16 | + nil, {trace = false}), |
| 17 | + CreatePatternMatcher({'^go%.exe$'}, MatchCompilerName, goExtractor, |
| 18 | + { |
| 19 | + prepend = {'--mimic', '"${compiler}"'}, |
| 20 | + order = ORDER_BEFORE |
| 21 | + }) |
| 22 | + } |
5 | 23 | end |
6 | | - return { |
7 | | - CreatePatternMatcher({'^go-autobuilder$', '^go-autobuilder%.exe$'}, |
8 | | - MatchCompilerName, nil, {trace = false}), |
9 | | - CreatePatternMatcher({'^go$', '^go%.exe$'}, MatchCompilerName, |
10 | | - goExtractor, {prepend = {'--mimic', '${compiler}'}}) |
11 | | - } |
| 24 | + return patterns |
12 | 25 | end |
13 | 26 |
|
14 | 27 | -- Return a list of minimum supported versions of the configuration file format |
|
0 commit comments