Commit 87d0b80
authored
[libclang][reproducers] Redirect writing output to the reproducer cache directory. (#11853)
The intention is to keep reproducers relocatable. Without redirection we are
trying to write output to "/some/path/existing/only/where/reproducer/generated.o"
and failing to do so. Instead we redirect the output to the reproducer cache
directory which is a relative path that is guaranteed to exist.
.pcm files are the output too but we don't redirect them because they
should be written and read from a specific place which is controlled by
`LookupOutput` callback.1 parent ebacbc3 commit 87d0b80
File tree
2 files changed
+16
-4
lines changed- clang
- test/Modules
- tools/libclang
2 files changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
| 838 | + | |
| 839 | + | |
839 | 840 | | |
840 | 841 | | |
841 | 842 | | |
| |||
853 | 854 | | |
854 | 855 | | |
855 | 856 | | |
| 857 | + | |
856 | 858 | | |
857 | 859 | | |
| 860 | + | |
858 | 861 | | |
859 | 862 | | |
860 | | - | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
861 | 870 | | |
862 | 871 | | |
863 | 872 | | |
| |||
866 | 875 | | |
867 | 876 | | |
868 | 877 | | |
| 878 | + | |
| 879 | + | |
869 | 880 | | |
870 | | - | |
| 881 | + | |
871 | 882 | | |
872 | 883 | | |
873 | | - | |
| 884 | + | |
874 | 885 | | |
875 | 886 | | |
876 | 887 | | |
| |||
0 commit comments