Commit cbe07b0
committed
Unset the
There are cases where a dev environment can set the
`DYLD_LIBRARY_PATH` env variable in a way that loads a version of
the C++ standard library that is not compatible with the system
version of the library used by Sorbet. This will cause Sorbet to
generate corrupted JSON if the --print=symbol-table-json flag is
passed. Unsetting this environment variable forces Sorbet to default
to the system version of the C++ standard library, preventing this bug.DYLD_LIBRARY_PATH env var when running Sorbet1 parent 107bee8 commit cbe07b0
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | | - | |
| 19 | + | |
14 | 20 | | |
15 | | - | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
0 commit comments