| Issue |
161950
|
| Summary |
[clang] embeds use absolute paths for dependency output
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
olemayu
|
Clang generates absolute paths for embeds, whereas includes use paths relative to the current working directory.
```c
/* source/main.c */
#include <stdio.h>
#include "include.h"
int main() {
static const char embed[] = {
#embed "include.h"
};
printf("%s\n", embed);
return 0;
}
```
Built with:
```
clang-22 -MMD source/main.c -std=c23
```
Dependency output:
```mk
main.o: source/main.c source/include.h \
/home/user/project/source/include.h
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs