You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use ccache in my environment. I love this tool but I noticed that when I use the gcc --wrapper option the ccache recognizes it as "multiple source files" (with fallback to the compiler).
Not sure if it's possible to support -wrapper in a reasonable way, but here are some notes for a potential implementation:
Need to handle -wrapper @file specially where the @file part does not get expanded like normal @file arguments do.
Need to split the argument to -wrapper on , to find the wrapper executable.
Probably should run hash_compiler on the wrapper executable. This should be enough for things like running strace or gdb, but is it enough for wrappers that modify the outcome?
Meanwhile I'll mark -wrapper as "too hard" so that the result will be "unsupported compiler option" instead of "multiple source files".
Dear All,
I'm trying to use ccache in my environment. I love this tool but I noticed that when I use the gcc --wrapper option the ccache recognizes it as "multiple source files" (with fallback to the compiler).
My command line is like:
ccache aarch64-linux-gnu-g++ -wrapper my-custom-wrapper.bin -no-integrated-cpp -g -ggdb -Wall -Wconversion -Wno-unused-variable -Wno-unused-parameter -Wfatal-errors -Werror -ffunction-sections -fdata-sections -O0 -Wno-implicit-fallthrough -std=c++17 -fPIC -MMD -Wno-shadow -g -fPIC -Wno-unused-but-set-variable -MD -MT file.cc.o -MF file.cc.o.d -o file.cc.o -c file.cc
Thanks a lot and have a nice day.
luigi
The text was updated successfully, but these errors were encountered: