Skip to content

Add -dumpbase to gcc compile flags, so that intermediate files have no prefix. #135

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

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

Conversation

Gaspard--
Copy link

By default, on gcc they seem to have the output's name as prefix, in out case, a-.
This means the intermediary files end up with the name of the form "a-XXX.o" instead of "XXX.o", which breaks the code checking if a reusable object file exists.
g++ has a -dumpbase which can be used to control this. Setting it to '' fixes this issue.
clang++ has no such option, thus the code is only active in gcc builds.
I haven't tested if the bug manifests on clang.

@dougbinks
Copy link
Collaborator

This looks like something which has changed since the last time I tested with gcc. It will take me a bit of time to check and merge this.

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.

2 participants