| Issue |
179482
|
| Summary |
`--relocatable-pch` clang option no longer works
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
jmcclellan-figma
|
repro:
```
mkdir /tmp/pch-repro
cd /tmp/pch-repro
touch header.h
clang -x c-header --relocatable-pch -isysroot /tmp/pch-repro/ header.h -o header.h.pch
llvm-bcanalyzer header.h.pch -dump | grep ORIGINAL
```
Since we passed `relocatable-pch`, we would expect a _relative_ path, that is
```
<ORIGINAL_FILE abbrevid=5 op0=1/> blob data = ""
```
however, we get an absolute path, that is:
```
<ORIGINAL_FILE abbrevid=5 op0=1/> blob data = ""
```
Looking at the code, it seems to be a logic error from #135147 (`63e2963f4a24cb9365d1224e69f64bf643171023`), we no longer even look at `isysroot` when `WritingModule` is false (that is, in the PCH case)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs