Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sccache does not generate new object file if "-gsplit-dwarf" is enabled and the filename or directory of the object is changed #2264

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhouronghua
Copy link

when output dir changed, and -g -gsplit-dwarf is enabled, new object file should be gererated, but not old cached object.

case:

1 echo "int test(){}" > test.cc

2 mkdir o1 o2

3 sccache g++ -c -g -gsplit-dwarf test.cc -o o1/test.o

4 sccache -z

5 sccache g++ -c -g -gsplit-dwarf test.cc -o o2/test.o

6 strings o2/test.o |grep o2/test.dwo

@zhouronghua zhouronghua changed the title [Feature](INF-2296) infra: fix sccache bug for dwo file generate fix: fix sccache bug for dwo file generate Sep 30, 2024
@zhouronghua zhouronghua changed the title fix: fix sccache bug for dwo file generate fix: sccache does not generate new object file if "-gsplit-dwarf" is enabled and the filename or directory of the object is changed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant