Commit 2238e67
committed
Support NixOS resource dirs
Previously, CppInterOp assumed that the resource dir would end in the
clang major version. This is common, but it's not always the case. On
NixOS, for example, we have something like this:
```
❯ clang++ -print-resource-dir
/nix/store/xl0vlc2wdchfbq8536zs19pj2r3xdmma-clang-wrapper-19.1.5/resource-root
```
I have updated the function to check that the path contains the major
version, rather than ending in it. This is still a useful version check,
though it's not as precise as it was before.1 parent e1ace51 commit 2238e67
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3042 | 3042 | | |
3043 | 3043 | | |
3044 | 3044 | | |
3045 | | - | |
| 3045 | + | |
3046 | 3046 | | |
3047 | 3047 | | |
3048 | 3048 | | |
| |||
0 commit comments