Hi there,
Does gllvm support capturing the command-line arguments (not underlying driver arguments) used on each translation unit?
For example, if I had the following runs:
gclang -o foo.o -flag1 -flag2 -flag3 foo.c
gclang -o bar.o -flag1 -flag2 -flag4 bar.c
gclang -o bar -lwhatever foo.o bar.o
I'd like the following mapping stored in a section stored somewhere in bar:
foo.o = clang -o foo.o -flag1 -flag2 -flag3 foo.c
bar.o = clang -o bar.o -flag1 -flag2 -flag4 bar.c
bar = clang -o bar -lwhatever foo.o bar.o
I'm aware that I can approximate this at the clang/LLVM level with -grecord-gcc-switches or -frecord-command-line, but was curious if I could do the same at the gllvm level.
This is something I could try to contribute, if there's interest.
Hi there,
Does
gllvmsupport capturing the command-line arguments (not underlying driver arguments) used on each translation unit?For example, if I had the following runs:
I'd like the following mapping stored in a section stored somewhere in
bar:I'm aware that I can approximate this at the clang/LLVM level with
-grecord-gcc-switchesor-frecord-command-line, but was curious if I could do the same at thegllvmlevel.This is something I could try to contribute, if there's interest.