1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.computeToolEnv = exports.computeEnv = void 0;
|
4 | function computeEnv(oldValue, newValues) {
|
5 | const parsedOldValue = oldValue ? oldValue.split(":") : [];
|
6 | return newValues
|
7 | .concat(parsedOldValue)
|
8 | .filter(it => it.length > 0)
|
9 | .join(":");
|
10 | }
|
11 | exports.computeEnv = computeEnv;
|
12 | function computeToolEnv(libPath) {
|
13 |
|
14 | return {
|
15 | ...process.env,
|
16 | DYLD_LIBRARY_PATH: computeEnv(process.env.DYLD_LIBRARY_PATH, libPath),
|
17 | };
|
18 | }
|
19 | exports.computeToolEnv = computeToolEnv;
|
20 |
|
\ | No newline at end of file |